File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -192,13 +192,14 @@ impl TestOutcome {
192
192
successes. to_string( ) . green( )
193
193
) ?;
194
194
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
+ ) ?;
202
203
203
204
// TODO: Avoid process::exit
204
205
std:: process:: exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments