Skip to content

Commit 3910666

Browse files
committed
add hints
1 parent c8f2716 commit 3910666

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/forge/src/result.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,14 @@ impl TestOutcome {
192192
successes.to_string().green()
193193
)?;
194194

195+
// Show helpful next steps for failed tests
196+
sh_println!("\n💡 Next steps:")?;
197+
sh_println!(" • Rerun only failed tests: forge test --rerun")?;
198+
sh_println!(" • Debug specific test: forge test --debug --match-test <test_name>")?;
199+
sh_println!(" • Watch mode with smart rerun: forge test --watch --rerun-failed")?;
200+
sh_println!(" • View detailed traces: forge test -vvv --match-test <test_name>")?;
201+
sh_println!(" • Run specific test: forge test --match-test <test_name>")?;
202+
195203
// TODO: Avoid process::exit
196204
std::process::exit(1);
197205
}

0 commit comments

Comments
 (0)