-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
pytest cache is empty inspite of that "--lf" option execute all the cases #3139
Comments
the current version of the this is no longer true for ci usage with bigger testsuites, since there a different focus is desires a discussion about sound solutions is needed as there is various ways to approach making cache/lastfailed suitable for ci usage |
For the OP's exactly problem we might consider adding a new configuration option that makes This is also useful on the command-line: when I start fixing tests incrementally using |
Which is not to say that we should abandon the idea of how to reuse the failed cache across runs in different CI workers; it is just that IMO those are two separate things. |
Should it be a configuration option or the new default behavior? Is it likely that people rely on the current behavior to run all of the tests? If it should be an option, how's in any case happy to implement it |
Personally I would like to change the current behavior so it just stops with "success" after no more failed tests are left to run, but we probably want to introduce an option to fallback to the current behavior because I can imagine a scenario where users implemented a way to share the |
ok cool. how should we call the option? --run-all-tests-when-none-failed-or-no-cache seems a bit wordy |
I was thinking in terms of an enumeration rather than a bool value, something like |
Fixed in #3295 |
Use Case:
The text was updated successfully, but these errors were encountered: