Skip to content
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

Prevent last-failed tests from running twice if they pass #1

Open
sjvrijn opened this issue Apr 28, 2023 · 2 comments
Open

Prevent last-failed tests from running twice if they pass #1

sjvrijn opened this issue Apr 28, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@sjvrijn
Copy link
Owner

sjvrijn commented Apr 28, 2023

Currently, after pytest --last-failed has succeded, i.e., all last failed tests pass again, the whole suite is run again, including the ones that were already run.

If possible, these tests should be excluded from the full run afterwards, such that in any run, each test is run at most once.

@sjvrijn sjvrijn added the enhancement New feature or request label Apr 28, 2023
@mdesco-crgl
Copy link

I would actually like an option to disable the subsequent run to occur. if --lf succeeds, then I can assume that the whole suite is passing. Running it again wastes my CI minutes

@sjvrijn
Copy link
Owner Author

sjvrijn commented Oct 29, 2024

@mdesco-crgl Good suggestion, I'll note it as a separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants