How can I get an incremental report on code coverage in Python?
By "incremental", I mean what has been the change in the covered lines since some "last" report, or from a particular Git commit.
I'm using unittest and coverage (and coveralls.io) to get the code coverage statistics, which work great. But I'm involved only with a part of the project, and at first I'm concerned with what my last commit has changed. I expected coverage to be able to show the difference between two reports, but so far have not found anything short of running textual diff on HTML output.
coverageto be able to show the difference between two runs, but so far have not found anything short of running textual diff on HTML output. Updated the question accordingly.coverage xmlcan output an xml report which you may be able to parse yourself and then diff (it may also provide utilities to parse the XML for you).