A standard test suite for Launchpad-derived code.
Assumes the following layout beneath base_dir:
stories/ - Contains pagetests doc/ - Contains doctests
Function | build_doctest_suite | Build the doc test suite. |
Function | build_test_suite | Build a test suite from a directory containing test files. |
The parent's 'stories' subdirectory will be checked for pagetests and the parent's 'doc' subdirectory will be checked for doctests.
Parameters | base_dir | The tests subdirectory that. |
special_tests | A dict mapping filenames to TestSuite objects. These files need special treatment (for instance, they should be run in a different layer, or they need custom setup/teardown). The given TestSuite object will be used for that file, rather than a new one generated. | |
layer | The layer in which to run the tests. |