Browse Source

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
pull/1189/head
0x7D2B 4 years ago committed by GitHub
parent
commit
57e38adad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      boa_tester/src/exec.rs
  2. 2
      boa_tester/src/main.rs

3
boa_tester/src/exec.rs

@ -58,7 +58,8 @@ impl TestSuite {
if verbose != 0 { if verbose != 0 {
println!( println!(
"Results: total: {}, passed: {}, ignored: {}, failed: {} (panics: {}{}), conformance: {:.2}%", "Suite {} results: total: {}, passed: {}, ignored: {}, failed: {} (panics: {}{}), conformance: {:.2}%",
self.name,
total, total,
passed.to_string().green(), passed.to_string().green(),
ignored.to_string().yellow(), ignored.to_string().yellow(),

2
boa_tester/src/main.rs

@ -163,7 +163,7 @@ static IGNORED: Lazy<Ignored> = Lazy::new(|| {
#[derive(StructOpt, Debug)] #[derive(StructOpt, Debug)]
#[structopt(name = "Boa test262 tester")] #[structopt(name = "Boa test262 tester")]
enum Cli { enum Cli {
/// Run the test suitr. /// Run the test suite.
Run { Run {
/// Whether to show verbose output. /// Whether to show verbose output.
#[structopt(short, long, parse(from_occurrences))] #[structopt(short, long, parse(from_occurrences))]

Loading…
Cancel
Save