Skip to content
Open
Changes from 1 commit
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
8 changes: 8 additions & 0 deletions crates/forge/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,14 @@ impl TestOutcome {
successes.to_string().green()
)?;

// Show helpful next steps for failed tests
sh_println!("\n💡 Next steps:")?;
sh_println!(" • Rerun only failed tests: forge test --rerun")?;
sh_println!(" • Debug specific test: forge test --debug --match-test <test_name>")?;
sh_println!(" • Watch mode with smart rerun: forge test --watch --rerun-failed")?;
sh_println!(" • View detailed traces: forge test -vvv --match-test <test_name>")?;
sh_println!(" • Run specific test: forge test --match-test <test_name>")?;

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