0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-01 20:25:12 -05:00

test(cli): add test for deno test --shuffle (#11523)

This commit is contained in:
Yasser A.Idrissi 2021-07-27 19:18:16 +01:00 committed by GitHub
parent f6ec72edc4
commit fd0b24b246
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"]);