diff options
author | Hajime-san <41257923+Hajime-san@users.noreply.github.com> | 2024-08-20 10:27:36 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 01:27:36 +0000 |
commit | 19bcb40059f6ba730b6d05d8edf005c6b40f6ff8 (patch) | |
tree | e7c60d8957a8609199a3dad24455518cc36fac32 /cli/tools/bench | |
parent | 4f49f703c10afcde7155baac2b494fa6670c0115 (diff) |
feat(cli/tools): add a subcommand `--hide-stacktraces` for test (#24095)
Diffstat (limited to 'cli/tools/bench')
-rw-r--r-- | cli/tools/bench/reporters.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cli/tools/bench/reporters.rs b/cli/tools/bench/reporters.rs index 9a1da04ec..3f244ed62 100644 --- a/cli/tools/bench/reporters.rs +++ b/cli/tools/bench/reporters.rs @@ -2,6 +2,7 @@ use serde::Serialize; +use crate::tools::test::TestFailureFormatOptions; use crate::version; use super::*; @@ -243,7 +244,10 @@ impl BenchReporter for ConsoleReporter { &desc.name, &mitata::reporter::Error { stack: None, - message: format_test_error(js_error), + message: format_test_error( + js_error, + &TestFailureFormatOptions::default() + ), }, options ) @@ -298,7 +302,7 @@ impl BenchReporter for ConsoleReporter { println!( "{}: {}", colors::red_bold("error"), - format_test_error(&error) + format_test_error(&error, &TestFailureFormatOptions::default()) ); println!("This error was not caught from a benchmark and caused the bench runner to fail on the referenced module."); println!("It most likely originated from a dangling promise, event/timeout handler or top-level code."); |