Undocumented
Class |
|
Undocumented |
Class |
|
A Django test runner that uses unittest2 test discovery. |
Class |
|
Dummy list class for faking storage of results in unittest.TestResult. |
Class |
|
Run a series of tests in parallel in several processes. |
Class |
|
Custom result class that triggers a PDB session when an error or failure occurs. |
Class |
|
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 |
|
Run tests and record everything but don't display anything. |
Class |
|
This class implements shuffling with a special consistency property. Consistency means that, for a given seed and key function, if two sets of items are shuffled, the resulting order will agree on the intersection of the two sets... |
Function | filter |
Return the matching tests as an iterator. |
Function | find |
Undocumented |
Function | get |
The maximum number of test processes when using the --parallel option. |
Function | parallel |
Parse value passed to the --parallel option. |
Function | partition |
Partition a test suite by test case, preserving the order of tests. |
Function | reorder |
Return an iterator that reorders the given tests, keeping tests next to other tests of their class. |
Function | reorder |
Reorder an iterable of tests, grouping by the given TestCase classes. |
Function | shuffle |
Return an iterator over the given tests in a shuffled order, keeping tests next to other tests of their class. |
Function | test |
Undocumented |
Function | try |
Try importing a test label, and return (is_importable, is_package). |
Function | _class |
Undocumented |
Function | _init |
Switch to databases dedicated to this worker. |
Function | _process |
Stub method to simplify run() implementation. |
Function | _run |
Run a suite of tests with a RemoteTestRunner and return a RemoteTestResult. |
Variable | _worker |
Undocumented |
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.
Try importing a test label, and return (is_importable, is_package). Relative labels like "." and ".." are seen as directories.
Switch to databases dedicated to this worker. This helper lives at module-level because of the multiprocessing module's requirements.