summaryrefslogtreecommitdiff
path: root/coverage
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-06-30 12:32:17 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-06-30 12:40:44 -0400
commit201f5e93cde09c1fe613e33e0529cf0390cdb09c (patch)
tree9d875f6a142d3b3baa81b7284fee4fcdfec0a0e0 /coverage
parent612d6600e5381527e028a8541c477ad6e8a3bb65 (diff)
downloadpython-coveragepy-git-201f5e93cde09c1fe613e33e0529cf0390cdb09c.tar.gz
Make show_contexts available to set_option, and document it.
Diffstat (limited to 'coverage')
-rw-r--r--coverage/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/config.py b/coverage/config.py
index f8c91897..01ceef79 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -202,12 +202,12 @@ class CoverageConfig(object):
self.precision = 0
self.show_missing = False
self.skip_covered = False
- self.show_contexts = False
# Defaults for [html]
self.extra_css = None
self.html_dir = "htmlcov"
self.html_title = "Coverage report"
+ self.show_contexts = False
# Defaults for [xml]
self.xml_output = "coverage.xml"
@@ -355,6 +355,7 @@ class CoverageConfig(object):
('extra_css', 'html:extra_css'),
('html_dir', 'html:directory'),
('html_title', 'html:title'),
+ ('show_contexts', 'html:show_contexts', 'boolean'),
# [xml]
('xml_output', 'xml:output'),