summaryrefslogtreecommitdiff
path: root/coverage
diff options
context:
space:
mode:
Diffstat (limited to 'coverage')
-rw-r--r--coverage/config.py3
-rw-r--r--coverage/control.py5
2 files changed, 6 insertions, 2 deletions
diff --git a/coverage/config.py b/coverage/config.py
index e72a728b..ef45ba5a 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -48,6 +48,7 @@ class CoverageConfig(object):
self.partial_list = DEFAULT_PARTIAL[:]
self.partial_always_list = DEFAULT_PARTIAL_ALWAYS[:]
self.precision = 0
+ self.show_missing = False
# Defaults for [html]
self.html_dir = "htmlcov"
@@ -118,6 +119,8 @@ class CoverageConfig(object):
self.get_line_list(cp, 'report', 'partial_branches_always')
if cp.has_option('report', 'precision'):
self.precision = cp.getint('report', 'precision')
+ if cp.has_option('report', 'show_missing'):
+ self.show_missing = cp.getboolean('report', 'show_missing')
# [html]
if cp.has_option('html', 'directory'):
diff --git a/coverage/control.py b/coverage/control.py
index eea6b00a..ca2a51ab 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -557,10 +557,11 @@ class coverage(object):
"""
self.config.from_args(
- ignore_errors=ignore_errors, omit=omit, include=include
+ ignore_errors=ignore_errors, omit=omit, include=include,
+ show_missing=show_missing,
)
reporter = SummaryReporter(
- self, show_missing, self.config.ignore_errors
+ self, self.config.show_missing, self.config.ignore_errors
)
reporter.report(morfs, outfile=file, config=self.config)