Add --no-loadscope-reorder and --loadscope-reorder options (#1217)
Based on #1098. Closes #1098 --------- Co-authored-by: Toan Vuong <toan.vuong@hyperscience.com>
This commit is contained in:
5
changelog/1083.improvement.rst
Normal file
5
changelog/1083.improvement.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
Add ``--no-loadscope-reorder`` and ``--loadscope-reorder`` option to control whether to automatically reorder tests in loadscope for tests where relative ordering matters. This only applies when using ``loadscope``.
|
||||
|
||||
For example, [test_file_1, test_file_2, ..., test_file_n] are given as input test files, if ``--no-loadscope-reorder`` is used, for either worker, the ``test_file_a`` will be executed before ``test_file_b`` only if ``a < b``.
|
||||
|
||||
The default behavior is to reorder the tests to maximize the number of tests that can be executed in parallel.
|
||||
Reference in New Issue
Block a user