summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-07-06 09:20:33 +0800
committerGitHub <noreply@github.com>2021-07-05 21:20:33 -0400
commite8258e0210c4690a1fbbcefe0e6a859da8efc19b (patch)
tree75c56efb39d917d3d697eea4879d3e48acdc657e /cli/main.rs
parentbdeb4f430b387ebdacce7c68bb1f316830856c39 (diff)
feat(test): add --shuffle flag to randomize test ordering (#11163)
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 381ba7214..a61f94530 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -984,6 +984,7 @@ async fn test_command(
quiet: bool,
allow_none: bool,
filter: Option<String>,
+ shuffle: Option<u64>,
concurrent_jobs: usize,
) -> Result<(), AnyError> {
if let Some(ref coverage_dir) = flags.coverage_dir {
@@ -1172,6 +1173,7 @@ async fn test_command(
quiet,
true,
filter.clone(),
+ shuffle,
concurrent_jobs,
)
.map(|res| res.map(|_| ()))
@@ -1207,6 +1209,7 @@ async fn test_command(
quiet,
allow_none,
filter,
+ shuffle,
concurrent_jobs,
)
.await?;
@@ -1314,6 +1317,7 @@ fn get_subcommand(
include,
allow_none,
filter,
+ shuffle,
concurrent_jobs,
} => test_command(
flags,
@@ -1324,6 +1328,7 @@ fn get_subcommand(
quiet,
allow_none,
filter,
+ shuffle,
concurrent_jobs,
)
.boxed_local(),