-
Notifications
You must be signed in to change notification settings - Fork 10
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
Parallel testing support (xdist) #22
Comments
https://github.com/adamchainz/pytest-randomly supports xdist :) |
Merged
jbasko
added a commit
that referenced
this issue
Mar 19, 2018
Make it work with pytest-xdist as requested in #22 - generate random order seed during command line argument initialisation so that all processes get the same default value.
Fixed. |
I know it's an old and closed issue, but I seem to be having the same problem with
Should I open a new issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for great plugin. However, there's one problem for me: my test suite uses xdist to run tests on multiple CPU cores, and it completely breaks with pytest-random-order.
Here's some fake tests to demonstrate the problem:
And here it is executed in two parallel processes:
It gets worse the more tests and CPU cores you have. I suppose that every subprocess generates a different seed and executes other test cases than it was expected to, because when a seed is specified using --random-order-seed, it always seem to work.
The text was updated successfully, but these errors were encountered: