l.s.t.__init__ : module documentation

Part of lp.services.testing

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.
def build_doctest_suite(base_dir, tests_path, special_tests={}, layer=None, setUp=setUp, tearDown=tearDown, package=None):
Build the doc test suite.
def build_test_suite(base_dir, special_tests={}, layer=None, setUp=setUp, tearDown=tearDown, pageTestsSetUp=None):
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.

Parametersbase_dirThe tests subdirectory that.
special_testsA 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.
layerThe layer in which to run the tests.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.