Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions crates/forge/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,15 @@ impl TestOutcome {
successes.to_string().green()
)?;

// Show helpful hint for rerunning failed tests
let test_word = if failures == 1 { "test" } else { "tests" };
sh_println!(
"\n💡 Tip: Run {} to retry only the {} failed {}",
"`forge test --rerun`".cyan(),
failures,
test_word
)?;

// TODO: Avoid process::exit
std::process::exit(1);
}
Expand Down
Loading