Console and HTML coverage reports differ in branch miss details · Issue #342 · nedbat/coveragepy (original) (raw)
Originally reported by Rowan Pattieson (Bitbucket: rowanpattieson-ipl, GitHub: Unknown)
Using coverage 3.7.1 .
The "BrMiss" field in a console report and the "partial" field in an HTML report sometimes do not agree with one another.
A simple example to demonstrate this (borrowed from Issue #176) is attached as DifferentBranchMissReport.py .
Notice that the console report states there are 16/16 branch misses, whereas the HTML report states there are 0/16 branch misses.
I think the HTML report is correct.
(None of the branches are ever executed, thus they are counted as full misses rather than partial branch misses.)
Also attached are the coverage output, and console and HTML reports.
Commands executed :
#!bash
coverage run --branch DifferentBranchMissReport.py
coverage report > DifferentBranchMissReport_Console.txt
coverage html
- Bitbucket: https://bitbucket.org/ned/coveragepy/issue/342
- This issue had attachments: .coverage, DifferentBranchMissReport.py, DifferentBranchMissReport_Console.txt, htmlcov.zip. See the original issue for details.