mirror of
https://github.com/catchorg/Catch2.git
synced 2025-07-16 13:45:32 +02:00
Default to randomized test case order
This commit is contained in:
parent
b9c018b38a
commit
a483b6d7d3
@ -76,7 +76,7 @@ namespace Catch {
|
||||
WarnAbout::What warnings = WarnAbout::Nothing;
|
||||
ShowDurations showDurations = ShowDurations::DefaultForReporter;
|
||||
double minDuration = -1;
|
||||
TestRunOrder runOrder = TestRunOrder::Declared;
|
||||
TestRunOrder runOrder = TestRunOrder::Randomized;
|
||||
ColourMode defaultColourMode = ColourMode::PlatformDefault;
|
||||
WaitForKeypress::When waitForKeypress = WaitForKeypress::Never;
|
||||
|
||||
|
@ -46,10 +46,15 @@ env["TEST_SHARD_INDEX"] = "0"
|
||||
env["TEST_TOTAL_SHARDS"] = "2"
|
||||
env["TEST_SHARD_STATUS_FILE"] = info_file_path
|
||||
|
||||
cmd = [
|
||||
bin_path,
|
||||
# We rely on the test order being deterministic
|
||||
'--order', 'decl'
|
||||
]
|
||||
|
||||
try:
|
||||
ret = subprocess.run(
|
||||
bin_path,
|
||||
cmd,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
check=True,
|
||||
|
Loading…
x
Reference in New Issue
Block a user