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
warning "Module x was never imported" when running with xdist #212
Comments
I'm using an According to coverage docs, the I use the This always worked fine when running I would like to try using pytest-cov plugin, but that warning tells me I may be doing something wrong? |
How can I reproduce this? Enough to checkout https://github.com/adobe-type-tools/psautohint and run tox-something? |
thanks for looking into this. Yes, you can just clone and run |
Check the new examples from #267 - they should clarify how to correctly use pytest-cov in your project. |
Thank you! |
If I install pytest-xdist plugin, and run
pytest --cov
with some-n
number of parallel processes (even with-n 1
), I get this warnings at the end:However, the data is collected, the
.coverage.*
data file is created, and a report is printed correctly despite the warnings.If I run without passing the -n xdist option, so not in parallel, I don't get any such warnings.
Similarly I don't get those warning if I run
coverage run -m pytest
instead ofpytest --cov
.I have a .coveragerc file in the root of the repository which contains this:
The text was updated successfully, but these errors were encountered: