-
Notifications
You must be signed in to change notification settings - Fork 5
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
Improve compliance with pytest-xdist
#7
Comments
FYI @smarie , love the project, but I just ran into this problem today. I use pytest-xdist in CI to speed things up a bit, but in my case this actually broke my tests, which locally, not using pytest-xdist, worked fine. One thing that worked for my use case was adding the flag |
That's so nice of you @aaronsmith1234 to share this workaround ! It is persons like you who make open source so great :) I very much appreciate. I'll leave the ticket open but rename it accordingly. |
pytest-xdist
A good way to do this is to write a new scheduler for your tests. Here's some example code (feel free to do it differently)
Then use this scheduler by implementing this hook in
|
Maybe this is not so bad: maybe there is a way to tell pytest-xdist that the group of steps have to be executed in the same distributed process ?
The text was updated successfully, but these errors were encountered: