reorder_test_bin
Return an iterator that reorders the given tests, keeping tests next to other tests of their class.
def reorder_test_bin(
tests: iterable,
shuffler: callable,
reverse: boolean = False
) - > iterator
Return an iterator that reorders the given tests, keeping tests next to other tests of their class.
Parameters
| Name | Type | Description |
|---|---|---|
| tests | iterable | An iterable of test cases to be reordered; must support the reversed() function. |
| shuffler | callable | An optional function used to randomize the order of the tests while maintaining class grouping. |
| reverse | boolean = False | A flag that, when set to True, reverses the final order of the tests. |
Returns
| Type | Description |
|---|---|
iterator | An iterator yielding the reordered test cases, optionally shuffled or reversed. |