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

Fix working with --stepwise #376

Closed
adamchainz opened this issue Aug 13, 2021 · 0 comments · Fixed by #377
Closed

Fix working with --stepwise #376

adamchainz opened this issue Aug 13, 2021 · 0 comments · Fixed by #377

Comments

@adamchainz
Copy link
Member

Python Version

No response

Package Version

No response

Description

https://docs.pytest.org/en/6.2.x/cache.html#stepwise

Using --stepwise doesn't seem to work with pytest-randomly at current.

If I have tests A through D that all fail with 'assert 0', but a seed that runs them with D first, it stops after the failure of D but assumes that A through C passed even though they didn't run.

It seems to base its success/fail tracking on the test order pre-shuffle.

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 a pull request may close this issue.

1 participant