Undocumented
Class | DiscoverRunner |
A Django test runner that uses unittest2 test discovery. |
Variable | tblib |
Undocumented |
Class | DebugSQLTextTestResult |
Undocumented |
Class | DummyList |
Dummy list class for faking storage of results in unittest.TestResult. |
Class | ParallelTestSuite |
Run a series of tests in parallel in several processes. |
Class | PDBDebugResult |
Custom result class that triggers a PDB session when an error or failure occurs. |
Class | RemoteTestResult |
Extend unittest.TestResult to record events in the child processes so they can be replayed in the parent process. Events include things like which tests succeeded or failed. |
Class | RemoteTestRunner |
Run tests and record everything but don't display anything. |
Class | Shuffler |
No summary |
Function | _class_shuffle_key |
Undocumented |
Function | _init_worker |
Switch to databases dedicated to this worker. |
Function | _run_subsuite |
Run a suite of tests with a RemoteTestRunner and return a RemoteTestResult. |
Function | filter_tests_by_tags |
Return the matching tests as an iterator. |
Function | find_top_level |
Undocumented |
Function | get_max_test_processes |
The maximum number of test processes when using the --parallel option. |
Function | parallel_type |
Parse value passed to the --parallel option. |
Function | partition_suite_by_case |
Partition a test suite by test case, preserving the order of tests. |
Function | reorder_test_bin |
Return an iterator that reorders the given tests, keeping tests next to other tests of their class. |
Function | reorder_tests |
Reorder an iterable of tests, grouping by the given TestCase classes. |
Function | shuffle_tests |
Return an iterator over the given tests in a shuffled order, keeping tests next to other tests of their class. |
Function | test_match_tags |
Undocumented |
Function | try_importing |
Try importing a test label, and return (is_importable, is_package). |
Variable | _worker_id |
Undocumented |
Switch to databases dedicated to this worker.
This helper lives at module-level because of the multiprocessing module's requirements.
Run a suite of tests with a RemoteTestRunner and return a RemoteTestResult.
This helper lives at module-level and its arguments are wrapped in a tuple because of the multiprocessing module's requirements.
Return an iterator that reorders the given tests, keeping tests next to other tests of their class.
tests
should be an iterable of tests that supports reversed().
Reorder an iterable of tests, grouping by the given TestCase classes.
This function also removes any duplicates and reorders so that tests of the same type are consecutive.
The result is returned as an iterator. classes
is a sequence of types.
Tests that are instances of classes[0]
are grouped first, followed by
instances of classes[1]
, etc. Tests that are not instances of any of the
classes are grouped last.
If reverse
is True, the tests within each classes
group are reversed,
but without reversing the order of classes
itself.
The shuffler
argument is an optional instance of this module's Shuffler
class. If provided, tests will be shuffled within each classes
group, but
keeping tests with other tests of their TestCase class. Reversing is
applied after shuffling to allow reversing the same random order.
Return an iterator over the given tests in a shuffled order, keeping tests next to other tests of their class.
tests
should be an iterable of tests.