skip_covered changes reported total percentage

Issue #423 resolved
Charlie Denton created an issue

A codebase I manage has noticed that since upgrading to 4.0.0 there is a drop in reported coverage (from 99% to 97%).

This value goes back to 99% when I remove the skip_covered setting from .coveragerc.

Unfortunately, I can't yet provide an example of this on an open source project.

Comments (5)

  1. Florian Bruhin

    There's some discussion about this in #43 - it seems this is intentional and the total only shows the visible rows.

  2. Ned Batchelder repo owner

    Pull request 43 ( has some discussion, but we were undecided, and expected feedback. Seems like we are getting feedback :)

    Looking at it now, it does seem wrong that the total would exclude the skipped files. --fail-under is also affected, which seems wrong. The discussion in the pull request contrasts this feature with the HTML filtering, but HTML filtering is interactive and ad-hoc, for exploring the results. --skip-covered is a way to remove noise from the output.

  3. Log in to comment