c.t.customresult : module documentation

Part of canonical.testing

Support code for using a custom test result in test.py.
Function patch_find_tests Add a post-processing hook to zope.testing.testrunner.find_tests.
Function filter_tests Create a hook for patch_find_tests that filters tests based on id.
def patch_find_tests(hook):
Add a post-processing hook to zope.testing.testrunner.find_tests.

This is useful for things like filtering tests or listing tests.

ParametershookA callable that takes the output of the real testrunner.find_tests and returns a thing with the same type and structure.
def filter_tests(list_name):
Create a hook for patch_find_tests that filters tests based on id.
Parameterslist_nameA filename that contains a newline-separated list of test ids, as generated by list_tests.
ReturnsA callable that takes a result of testrunner.find_tests and returns only those tests with ids in the file 'list_name'.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.