Skip to content

Commit f56a075

Browse files
committed
only --rerun
1 parent 3910666 commit f56a075

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

crates/forge/src/result.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +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>")?;
195+
// Show helpful hint for rerunning failed tests
196+
let test_word = if failures == 1 { "test" } else { "tests" };
197+
sh_println!(
198+
"\n💡 Tip: Run {} to retry only the {} failed {}",
199+
"`forge test --rerun`".cyan(),
200+
failures,
201+
test_word
202+
)?;
202203

203204
// TODO: Avoid process::exit
204205
std::process::exit(1);

0 commit comments

Comments
 (0)