pytest-cov icon indicating copy to clipboard operation
pytest-cov copied to clipboard

pytest plugin combination 'pylint-pytest' and 'pytest-cov' deletes coverage result files

Open lhupfeldt opened this issue 4 years ago • 2 comments

Please see this: https://github.com/nedbat/coveragepy/issues/1282

lhupfeldt avatar Nov 19 '21 14:11 lhupfeldt

This is by design: pytest-cov automatically combines those pesky .coverage.123123 files for you.

ionelmc avatar Feb 02 '22 16:02 ionelmc

No, the wrong behaviour only occurs when pylint-pytestis involved. The coverage files are deleted before I get a chance to combine them. Without pylint-pytest it works as expected. @nedbat wrote that it seems to happen because pylint-pytest imports pytest-cov which then executes the wrong delete of the files.

lhupfeldt avatar Feb 02 '22 21:02 lhupfeldt