Skip to content

Console and HTML coverage reports differ in branch miss details #342

Closed
@nedbat

Description

@nedbat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreport

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions