mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
fix(test): change inflection depending on number of pending tests (#10466)
This commit is contained in:
parent
89057529bc
commit
40961cda58
3 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
[WILDCARD]
|
||||
running 1 tests from [WILDCARD]
|
||||
running 1 test from [WILDCARD]
|
||||
test def ... ok ([WILDCARD])
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 2 filtered out ([WILDCARD])
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
running 1 tests from [WILDCARD]
|
||||
running 1 test from [WILDCARD]
|
||||
test log ... ok [WILDCARD]
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [WILDCARD]
|
||||
|
|
|
@ -100,7 +100,12 @@ impl TestReporter for PrettyTestReporter {
|
|||
filtered,
|
||||
only: _,
|
||||
} => {
|
||||
println!("running {} tests from {}", pending, event.origin);
|
||||
if *pending == 1 {
|
||||
println!("running {} test from {}", pending, event.origin);
|
||||
} else {
|
||||
println!("running {} tests from {}", pending, event.origin);
|
||||
}
|
||||
|
||||
self.pending += pending;
|
||||
self.filtered_out += filtered;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue