summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasser A.Idrissi <getspookydev@gmail.com>2021-07-27 19:18:16 +0100
committerGitHub <noreply@github.com>2021-07-27 20:18:16 +0200
commitfd0b24b246e3c6ed22e96f67361da654bbff8b48 (patch)
tree60a44c37945c5856a36a3fbf8e66d9e45bbdcffb
parentf6ec72edc4c32f845cc2d5e1e39bb352ecc61df7 (diff)
test(cli): add test for deno test --shuffle (#11523)
-rw-r--r--cli/flags.rs24
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"]);