-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(forge): option to replay last test run failures only #8338
Conversation
crates/forge/bin/cmd/test/mod.rs
Outdated
/// Re-run recorded test failures from last run. | ||
/// If no failure recorded then regular test run is performed. | ||
#[arg(long)] | ||
pub run_failures: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could possibly be shortened to --rerun
for brevity as people will likely append it to the command after running their initial test that failed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, can change. Not sure though it would be obvious that only failures are run if renamed to --rerun
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed it in 55f68c9 description should be enough to make it clear it reruns only failures 👍
Small change in the way test match is extracted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! pending others
Motivation
Closes #4000
Solution
--rerun
in filter args to run only test failures from last runcache/test-failures
file. File path can be configured in tomltest_failures_file = path/to/file
and is removed onforge clean
--show-progress
in test args