A standard test suite for Launchpad-derived code.
Assumes the following layout beneath base_dir:
stories/ - Contains pagetests doc/ - Contains doctests
Module | customresult | Support code for using a custom test result in test.py. |
Module | doctestcodec | Codecs to convert Unicode strings to more human readable representations. |
Module | parallel | Parallel test glue. |
Module | profiled | Profile the test layers. |
Package | tests | No package docstring; 3/3 modules documented |
From the __init__.py module:
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. |