pytest-cov
pytest-cov copied to clipboard
pytest plugin combination 'pylint-pytest' and 'pytest-cov' deletes coverage result files
Please see this: https://github.com/nedbat/coveragepy/issues/1282
This is by design: pytest-cov automatically combines those pesky .coverage.123123 files for you.
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.