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:
parent
f6ec72edc4
commit
fd0b24b246
1 changed files with 24 additions and 0 deletions
24
cli/flags.rs
24
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"]);
|
||||
|
|
Loading…
Add table
Reference in a new issue