testtools.run
module documentationtesttools
python -m testtools.run testspec [testspec...]
Run some tests with the testtools extended API.
Function | list_test | Return the test ids that would be run if test() was run. |
Class | TestToolsTestRunner | A thunk object to support unittest.TestProgram. |
Class | TestProgram | A command-line program that runs a set of tests; this is primarily for making test modules conveniently executable. |
Function | main | Undocumented |
Return the test ids that would be run if test() was run.
When things fail to import they can be represented as well, though we use an ugly hack (see http://bugs.python.org/issue19746 for details) to determine that. The difference matters because if a user is filtering tests to run on the returned ids, a failed import can reduce the visible tests but it can be impossible to tell that the selected test would have been one of the imported ones.
Returns | A tuple of test ids that would run and error strings describing things that failed to import. |