mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
feat(test): change "failures:" headers in test report (#14490)
This commit is contained in:
parent
d0f5cd6a06
commit
ab728e9ccf
20 changed files with 47 additions and 38 deletions
|
@ -452,7 +452,7 @@ impl TestReporter for PrettyTestReporter {
|
|||
fn report_summary(&mut self, summary: &TestSummary, elapsed: &Duration) {
|
||||
if !summary.failures.is_empty() {
|
||||
let mut failure_titles = vec![];
|
||||
println!("\nfailures:\n");
|
||||
println!("\n{}\n", colors::white_bold_on_red(" ERRORS "));
|
||||
for (description, js_error) in &summary.failures {
|
||||
let failure_title = format!(
|
||||
"{} {}",
|
||||
|
@ -475,7 +475,7 @@ impl TestReporter for PrettyTestReporter {
|
|||
failure_titles.push(failure_title);
|
||||
}
|
||||
|
||||
println!("failures:\n");
|
||||
println!("{}\n", colors::white_bold_on_red(" FAILURES "));
|
||||
for failure_title in failure_titles {
|
||||
println!("{}", failure_title);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue