diff --git a/crates/forge/src/result.rs b/crates/forge/src/result.rs index 2e22adc85b21..cb53756551d7 100644 --- a/crates/forge/src/result.rs +++ b/crates/forge/src/result.rs @@ -126,9 +126,10 @@ impl TestOutcome { let total_skipped = self.skipped(); let total_tests = total_passed + total_failed + total_skipped; format!( - "\nRan {} test {}: {} tests passed, {} failed, {} skipped ({} total tests)", + "\nRan {} test {} in {:.2?}: {} tests passed, {} failed, {} skipped ({} total tests)", num_test_suites, suites, + self.duration(), Paint::green(total_passed), Paint::red(total_failed), Paint::yellow(total_skipped), diff --git a/crates/test-utils/src/util.rs b/crates/test-utils/src/util.rs index ca081bf63edc..f5beda778563 100644 --- a/crates/test-utils/src/util.rs +++ b/crates/test-utils/src/util.rs @@ -1054,7 +1054,7 @@ static IGNORE_IN_FIXTURES: Lazy = Lazy::new(|| { // solc runs r"runs: \d+, μ: \d+, ~: \d+", // elapsed time - "finished in .*?s", + "(?:finished)? ?in .*?s", // file paths r"-->.*\.sol", r"Location(.|\n)*\.rs(.|\n)*Backtrace",