Skip to content

Commit

Permalink
Include name in verbose results output of boa-tester (#1158)
Browse files Browse the repository at this point in the history
* Include name in verbose results output of boa-tester

Would make the logs a lot more readable.

* Fix typo
  • Loading branch information
0x7D2B authored Mar 24, 2021
1 parent e3ecaa8 commit 57e38ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion boa_tester/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion boa_tester/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static IGNORED: Lazy<Ignored> = 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))]
Expand Down

0 comments on commit 57e38ad

Please sign in to comment.