-
Notifications
You must be signed in to change notification settings - Fork 52
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
--last-failed and retest on success #76
Comments
Agree, this would be a great config. This would match the |
The workaround I've been using is |
@carver that's a great idea. To confirm - |
|
Yes, and then the next iteration runs only that single test, as opposed to looping over the failed tests? |
Say you have tests A, B, C, D, run in that order. Then you break tests B-D. The next run is:
Then you try to fix, but don't succeed. The next run is:
Then you fix B. The next run is:
|
Perfect, thanks for clarifying. For comparison,
Then you try to fix [B], but don't succeed. The next run is:
Then you fix B. The next run is:
...each run runs all the still-failing tests, until they're all fixed |
I'd love some guidance on how to get
pytest --last-failed
to play nice with ptw. Right now, if the last failed tests succeeds, then ptw sits patiently until the next file change.What I'd like is for it to run normally with last-failed, but when all of the last-failed tests succeed, then rerun all tests. Any suggestions?
The text was updated successfully, but these errors were encountered: