You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was unable to get pytest-xdist to work properly—it seems to cause race conditions when used in conjunction with pytest-cov. Perhaps we can revisit this in the future. See the original post for further discussion on the original attempt.
The text was updated successfully, but these errors were encountered:
I found this post on SO that suggests adding --dist=loadfile to the call to pytest to get all the tests in a given file to run on the same worker. I tried this on a Docker container running the Python 3.9 image and went from getting multiple failed tests to none. I'm only running on a small number of cores so maybe it still fails with more cores. Seems like this should help though if not solve the issue.
Happy to test on other versions of Python or share my Dockerfile if it would help.
@jvavrek can we change the tests to use xdist and run in parallel?
Originally posted by @jccurtis in #333 (comment)
I was unable to get
pytest-xdist
to work properly—it seems to cause race conditions when used in conjunction withpytest-cov
. Perhaps we can revisit this in the future. See the original post for further discussion on the original attempt.The text was updated successfully, but these errors were encountered: