Skip to content

Adjust --fail-on-flaky behavior to improve exit status handling #288

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

Merged
merged 4 commits into from
Feb 14, 2025

Conversation

ricardo-passthrough
Copy link
Contributor

@ricardo-passthrough ricardo-passthrough commented Feb 13, 2025

Enhance the --fail-on-flaky option to set a custom exit status when tests are retried and fail. This change ensures that the exit status reflects the presence of flaky tests more accurately. Additional tests validate the new behavior.

Fixes #287

@icemac
Copy link
Contributor

icemac commented Feb 13, 2025

Thank you for this pull request. Unfortunately it fails the tests. Could you please have a look?

@icemac icemac merged commit d0ff1d4 into pytest-dev:master Feb 14, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--fail-on-flaky not compatible with mark usage
2 participants