Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Testing

Alexandru Dan edited this page Aug 30, 2017 · 12 revisions

Unit tests

Integration tests

The integration tests are in review, pull request #222,

Setuptool

For integration test setuptool works differently than the usual automatic package discovery. The test_suite automatic discovery looks for "test_" prefix methods. The automatic test suite is also looking for the corresponding file in the actual package, thus we need a custom_test_suit method to run the tests.

For more information this link may be helpful.

def custom_test_suite():
    return unittest.TestLoader().discover('tests', pattern='test_*.py')

setup(
    [...]
    test_suite="setup.custom_test_suite",
    [...]
)

Coverage

Clone this wiki locally