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
Where do these .coverage.hostname.number.number files come from? #100
Comments
They appear if you use subprocesses or xdist. |
They don't get removed at the end of the testrun?! |
Ah, that's a useful bit of information. Yes, I use |
I mean, if you use subprocesses in your tests, then pytest-cov will automatically start measuring coverage in those processes (if they are python of course). That's what is making those files (besides using xdist). |
Oh, I don't use subprocess in my tests, just in my setup.py to run pytest. |
Does it reproduce without the setup.py shim? |
Just tried that. The files are still created when I just run |
What's your coverage version? |
Coverage is version 4.0.3. Pip says all of the three packages are up-to-date. Update: I just noticed messages of this form in the Pytest report:
|
Is there a repository that reproduce the issue? |
Yes, cloning danijar/layered and running |
Have the same issue when using At the testing, it is a lot of
|
Thanks for looking into this! |
I have a similar issue when testing a piece of code which uses Any idea how to resolve this issue? |
@danijar pls open up a separate issue and give some details. |
I cant remember changing anything but recently Pytest with Pytest-cov started creating a lot of file in the working directory in addition to the expected
.coverage
file.Where do there files come from?
The text was updated successfully, but these errors were encountered: