diff options
author | Yasser A.Idrissi <getspookydev@gmail.com> | 2021-07-27 19:18:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-27 20:18:16 +0200 |
commit | fd0b24b246e3c6ed22e96f67361da654bbff8b48 (patch) | |
tree | 60a44c37945c5856a36a3fbf8e66d9e45bbdcffb | |
parent | f6ec72edc4c32f845cc2d5e1e39bb352ecc61df7 (diff) |
test(cli): add test for deno test --shuffle (#11523)
-rw-r--r-- | cli/flags.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index 69df8f6fe..b7e4e84db 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -3539,6 +3539,30 @@ mod tests { } ); } + + #[test] + fn test_shuffle() { + let r = flags_from_vec(svec!["deno", "test", "--shuffle=1"]); + assert_eq!( + r.unwrap(), + Flags { + subcommand: DenoSubcommand::Test { + no_run: false, + doc: false, + fail_fast: None, + filter: None, + allow_none: false, + quiet: false, + shuffle: Some(1), + include: None, + concurrent_jobs: 1, + }, + watch: false, + ..Flags::default() + } + ); + } + #[test] fn test_watch() { let r = flags_from_vec(svec!["deno", "test", "--watch"]); |