-
Notifications
You must be signed in to change notification settings - Fork 4
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
Suggestion: Run tests in parallel #87
Comments
Good idea. I would suggest to use the
For more infos: https://pytest-xdist.readthedocs.io/en/latest/distribution.html |
In my VSCode All the tests are shown correctly in the list and I can run every test individually without any problems. Anybody else have this behaviour? |
WE currently have If the latter, can you check if you also have issues with insteadl setting "-n 4" in the pyproject.toml? |
Sorry, I meant It also does not work if I use I have got Python 3.11.4, pytest-7.4.0, xdist-3.3.1, vscode 1.83 |
I get similar symptoms if I enable My test output (vscode->test results->left side of the panel) reads
In
|
If we don't find a root cause soon, we might want to
Then whoever wants to have the tests run in parallel can still manually add "-n auto" to vscode's pytest arguments settings locally. |
... and do debugging after the ismrm deadline ;) |
Addresses issues caused by #89, mentioned in #87 by disabling parallel testing for now. We still test in parallel in the CI. We still install pytest-xdist. Any developer not having issues with parallel testing can add "-n auto" in their vscode pytest settings as an additional argument to still use parallel test execution.
In vscode->output->python test log I get - which is strange because everything else tells me that the tests have run successfully (well 6 out of 6 I guess no information about any errors):
In
|
microsoft/vscode-python#22232 If it is related, it could be fixed with the next release of the python vscode extension... |
Addresses issues caused by #89, mentioned in #87 by disabling parallel testing for now. We still test in parallel in the CI. We still install pytest-xdist. Any developer not having issues with parallel testing can add "-n auto" in their vscode pytest settings as an additional argument to still use parallel test execution.
As the number of tests increases, it might be nice to run tests in parallel, both in VSCode as well as in our CI
https://code.visualstudio.com/docs/python/testing#_run-tests-in-parallel
The text was updated successfully, but these errors were encountered: