-
Notifications
You must be signed in to change notification settings - Fork 224
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
Select which test should be distributed and which test should be run without concurrence #1040
Comments
The difference between this request and my alternative lies that developers won't accidently run the test suit with |
When xdist is active, no tests run in the controling process There's no plan for a meta scheduler that ensures noncoop tests are executed on a single node in isolation |
OK thank you! Could that be a feature request then? Some test need to be run in isolation; and preventing an entire test suite to run on If there is no plan/desire to add this feature, feel free to close this issue! |
there is a desire to add it, but lack of engineering time to build it |
I would like to use
pytest-xdist
inmne-lsl
: mne-tools/mne-lsl#229However, in the test suite, some test need to be run while no other test are running because they spawn network resources which might be pick-up by other tests. Example:
In this example,
test2
would be affected bytest1
run in a different worker.To avoid this problem, I would like new markers from
pytest-xdist
to mark which test should not be distributed and should be run through--dist no
, either before or after all the other tests distributed to workers.e.g.
My current alternative idea is to create this marker and to run 2 separate
pytest
command.The text was updated successfully, but these errors were encountered: