pytest-dev / pytest-cov

Coverage plugin for pytest.
MIT License
1.74k stars 212 forks source link

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

Open lhupfeldt opened 2 years ago

lhupfeldt commented 2 years ago

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

ionelmc commented 2 years ago

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

lhupfeldt commented 2 years ago

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.