summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-26 19:07:03 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-26 19:17:19 -0400
commit93c9ca9f1b2e5d0b45dbf4b82c77aaf05b458bac (patch)
tree6b0e1cc009da5e33ca87e8fb096704b27afe1a8f /coverage/control.py
parent18cf3b897d4b1e1a66beda180ec151cc0dd4dbc3 (diff)
downloadpython-coveragepy-git-93c9ca9f1b2e5d0b45dbf4b82c77aaf05b458bac.tar.gz
feat: xml and json say what they are doing, and -q quiets everything. #1254nedbat/dashq
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/control.py b/coverage/control.py
index defe9209..a96f558a 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -1006,7 +1006,7 @@ class Coverage:
ignore_errors=ignore_errors, report_omit=omit, report_include=include,
xml_output=outfile, report_contexts=contexts, skip_empty=skip_empty,
):
- return render_report(self.config.xml_output, XmlReporter(self), morfs)
+ return render_report(self.config.xml_output, XmlReporter(self), morfs, self._message)
def json_report(
self, morfs=None, outfile=None, ignore_errors=None,
@@ -1030,7 +1030,7 @@ class Coverage:
json_output=outfile, report_contexts=contexts, json_pretty_print=pretty_print,
json_show_contexts=show_contexts
):
- return render_report(self.config.json_output, JsonReporter(self), morfs)
+ return render_report(self.config.json_output, JsonReporter(self), morfs, self._message)
def sys_info(self):
"""Return a list of (key, value) pairs showing internal information."""