@butla Can you provide me with a reproducible scenario? I tried running your tests, and got many errors like this: docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
I see that you used to have two "coverage erase" lines and now you have only one?
Hmm, the problem is that "tox" and "pylint" each run with coverage measurement (because of coverage_pth), and they each read the .coverage file before running. This carries the .coverage data into a parallel .coverage.localhost.xxx file, which then gets combined by the combine step.
Seems like reading the .coverage file during auto-started coverage measurement is a bad thing.
Originally reported by Michał Bultrowicz (Bitbucket: Butla, GitHub: Butla)
If I understand http://nedbatchelder.com/blog/201607/coveragepy_42.html correctly, then running "run" and then "combine" (I'm running parallel tests) should properly detect loss of test coverage, right? Because they shouldn't look at the old .coverage by default.
But at the moment I still need to run "erase" to get rid of the old results before running the tests.
Here's my full tox.ini: https://github.com/butla/PyDAS/blob/a8c76d3221447fb34af60f5d03b18df52286ed4c/tox.ini
The text was updated successfully, but these errors were encountered: