-
Notifications
You must be signed in to change notification settings - Fork 6
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
config tool: not compatible with repos which need coverage combine
#33
Comments
In theory it should be safe to use parallel coverage tracing everywhere. At least I'm not aware of any downsides, other than a slightly more complicated config file. BTW does COVERAGE_PROCESS_START=tox.ini work? I wasn't sure coverage would look at the filename and realize it needs to check |
One advantage of always having
I'm not arguing that we should drop |
Yes, it works like a charm - for the moment only on my machine, but not on Travis - but maybe your suggested change will work. |
It was using a stale .coverage file from the previous run on your machine to produce the HTML reports. ;) If you did a |
Thanks for the explanation - that makes sense! |
I just had a realization: we should be calling The reason is this: parallel mode makes each coverage run write a new .coverage.$pid file. These get combined into a single .coverage and then erased by If the tests fail, tox will stop after running I don't think we want that, so it would be good to |
eg. https://github.com/zopefoundation/zc.zodbrecipes
In order to get correct coverage, @mgedmin pointed me to
https://github.com/buildout/buildout/blob/0185dc6a87f417160378547c776fb6da0c016e88/src/zc/buildout/testing.txt#L123-L152
After applying the fixes, you can't apply the config again, otherwise it deletes the fix again.
The text was updated successfully, but these errors were encountered: