summaryrefslogtreecommitdiff
path: root/cli/tools
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-05-02 20:30:30 +0800
committerGitHub <noreply@github.com>2021-05-02 08:30:30 -0400
commit40961cda583faaba128b555caebf284fd6298bb1 (patch)
tree2872c19240e09cdc3ecc172a2f86d30096fc3268 /cli/tools
parent89057529bc1329e6e9e193b5aa7beeb4a02efccb (diff)
fix(test): change inflection depending on number of pending tests (#10466)
Diffstat (limited to 'cli/tools')
-rw-r--r--cli/tools/test_runner.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/tools/test_runner.rs b/cli/tools/test_runner.rs
index f856390b9..7f3a139a4 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;
}