diff --git a/cli/tests/test/deno_test_only.ts.out b/cli/tests/test/deno_test_only.ts.out index 75b5af29b0ca84..5be46a5a00d825 100644 --- a/cli/tests/test/deno_test_only.ts.out +++ b/cli/tests/test/deno_test_only.ts.out @@ -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]) diff --git a/cli/tests/test/quiet_test.out b/cli/tests/test/quiet_test.out index 5ad03240d3202f..61d719d8406771 100644 --- a/cli/tests/test/quiet_test.out +++ b/cli/tests/test/quiet_test.out @@ -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] diff --git a/cli/tools/test_runner.rs b/cli/tools/test_runner.rs index f856390b97eec0..7f3a139a4b1ca1 100644 --- a/cli/tools/test_runner.rs +++ b/cli/tools/test_runner.rs @@ -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; }