From 57e38adad5bcbbae91b70278259f316dfcb02b6f Mon Sep 17 00:00:00 2001 From: 0x7D2B <72297086+0x7D2B@users.noreply.github.com> Date: Wed, 24 Mar 2021 22:30:51 +0000 Subject: [PATCH] Include name in verbose results output of boa-tester (#1158) * Include name in verbose results output of boa-tester Would make the logs a lot more readable. * Fix typo --- boa_tester/src/exec.rs | 3 ++- boa_tester/src/main.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/boa_tester/src/exec.rs b/boa_tester/src/exec.rs index b362f92356..311844e73b 100644 --- a/boa_tester/src/exec.rs +++ b/boa_tester/src/exec.rs @@ -58,7 +58,8 @@ impl TestSuite { if verbose != 0 { println!( - "Results: total: {}, passed: {}, ignored: {}, failed: {} (panics: {}{}), conformance: {:.2}%", + "Suite {} results: total: {}, passed: {}, ignored: {}, failed: {} (panics: {}{}), conformance: {:.2}%", + self.name, total, passed.to_string().green(), ignored.to_string().yellow(), diff --git a/boa_tester/src/main.rs b/boa_tester/src/main.rs index f9cb8dab8c..b734faba26 100644 --- a/boa_tester/src/main.rs +++ b/boa_tester/src/main.rs @@ -163,7 +163,7 @@ static IGNORED: Lazy = Lazy::new(|| { #[derive(StructOpt, Debug)] #[structopt(name = "Boa test262 tester")] enum Cli { - /// Run the test suitr. + /// Run the test suite. Run { /// Whether to show verbose output. #[structopt(short, long, parse(from_occurrences))]