From e8258e0210c4690a1fbbcefe0e6a859da8efc19b Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Tue, 6 Jul 2021 09:20:33 +0800 Subject: feat(test): add --shuffle flag to randomize test ordering (#11163) --- cli/main.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli/main.rs') 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, + shuffle: Option, 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(), -- cgit v1.2.3