From c84e2de22183a02fe10fe4a12c930b9c47c8f12b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 27 Oct 2009 07:21:41 -0400 Subject: Better reporting of partial lines, including leaving out partial stuff altogether if no arcs were measured. --- coverage/htmlfiles/index.html | 9 +++++++++ coverage/htmlfiles/pyfile.html | 4 +++- coverage/htmlfiles/style.css | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) (limited to 'coverage/htmlfiles') diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html index 3565931..2234ac7 100644 --- a/coverage/htmlfiles/index.html +++ b/coverage/htmlfiles/index.html @@ -21,6 +21,9 @@ statements run excluded + {% if arcs %} + partial + {% endif %} coverage {% for file in files %} @@ -29,6 +32,9 @@ {{file.stm}} {{file.run}} {{file.exc}} + {% if arcs %} + {{file.par}} + {% endif %} {{file.pc_cov|format_pct}}% {% endfor %} @@ -37,6 +43,9 @@ {{total_stm}} {{total_run}} {{total_exc}} +{% if arcs %} +{{total_par}} +{% endif %} {{total_cov|format_pct}}% diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index 8a0dd4e..91c56cb 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -29,7 +29,9 @@ function toggle_lines(btn, cls) { {{n_run}} run {{n_exc}} excluded {{n_mis}} missing - {{n_par}} partial + {% if arcs %} + {{n_par}} partial + {% endif %} diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css index b55e499..48961e5 100644 --- a/coverage/htmlfiles/style.css +++ b/coverage/htmlfiles/style.css @@ -126,8 +126,8 @@ td.text { border-left: 2px solid #808080; } .text p.par { - background: #ffffdd; - border-left: 2px solid #ffff00; + background: #ffffaa; + border-left: 2px solid #eeee99; } .text p.hide { background: inherit; -- cgit v1.2.1