coveragepy icon indicating copy to clipboard operation
coveragepy copied to clipboard

How can I generate incremental code coverage reports

Open zchangming opened this issue 5 months ago • 2 comments

How can I generate incremental code coverage reports (including line, function, and branch coverage) using Coverage 7.9.2?​​

Environment Coverage.py version: 7.9.2 Python versions: 3.9 (as supported by Coverage 7.9.2) Report types needed: Line coverage, Function coverage, Branch coverage

zchangming avatar Jul 11 '25 06:07 zchangming

Perhaps https://pypi.org/project/diff-cover/ is what you want? If not, say more about what you mean by incremental coverage reports.

nedbat avatar Jul 11 '25 10:07 nedbat

If what you want is a way to record/monitor coverage through time, I have some code lying around that tries to do that. If not, sorry for the noise.

devdanzin avatar Jul 31 '25 21:07 devdanzin