summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-03-13 22:14:57 -0500
committerNed Batchelder <ned@nedbatchelder.com>2010-03-13 22:14:57 -0500
commit9f6fa1c7806e7802572b28e8ecbd57a9afe5ec21 (patch)
treed4dc63b5974b040225223e6774828dd15ddd4687 /coverage/summary.py
parent99d1f54a583e5ac22742dada31a980b3145ce528 (diff)
downloadpython-coveragepy-9f6fa1c7806e7802572b28e8ecbd57a9afe5ec21.tar.gz
Reports now emphasize missed lines over executed lines, since those are more helpful for directing developers to improved test coverage.
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/coverage/summary.py b/coverage/summary.py
index 3db7b76..7348aca 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -23,10 +23,10 @@ class SummaryReporter(Reporter):
max_name = max([len(cu.name) for cu in self.code_units] + [5])
fmt_name = "%%- %ds " % max_name
fmt_err = "%s %s: %s\n"
- header = (fmt_name % "Name") + " Stmts Exec"
+ header = (fmt_name % "Name") + " Stmts Miss"
fmt_coverage = fmt_name + "%6d %6d"
if self.branches:
- header += " Branch BrExec"
+ header += " Branch BrPart"
fmt_coverage += " %6d %6d"
header += " Cover"
fmt_coverage += " %5d%%"
@@ -50,9 +50,9 @@ class SummaryReporter(Reporter):
try:
analysis = self.coverage._analyze(cu)
nums = analysis.numbers
- args = (cu.name, nums.n_statements, nums.n_executed)
+ args = (cu.name, nums.n_statements, nums.n_missing)
if self.branches:
- args += (nums.n_branches, nums.n_executed_branches)
+ args += (nums.n_branches, nums.n_missing_branches)
args += (nums.pc_covered,)
if self.show_missing:
args += (analysis.missing_formatted(),)
@@ -67,9 +67,9 @@ class SummaryReporter(Reporter):
if total.n_files > 1:
outfile.write(rule)
- args = ("TOTAL", total.n_statements, total.n_executed)
+ args = ("TOTAL", total.n_statements, total.n_missing)
if self.branches:
- args += (total.n_branches, total.n_executed_branches)
+ args += (total.n_branches, total.n_missing_branches)
args += (total.pc_covered,)
if self.show_missing:
args += ("",)