Report says 100% when it isn't quite there

Issue #41 resolved
Ned Batchelder repo owner created an issue

From Gerard Petersen:

When I run an html report (with version 3.2) it tells me it covered 100% when it actually did not. The header of the code report file in question:

Coverage for myapp/views : 100% 514 statements 513 run 0 excluded 1 missing

Roundup wise this is absolutely correct, but technically it isn't. It also says 100% in the overview report (index.html).

Comments (4)

  1. Ned Batchelder reporter

    This is a rounding issue: the coverage is 99.805%, which rounds to 100%. Perhaps percentages should be truncated rather than rounded.

  2. Log in to comment