diff options
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/coverage/control.py b/coverage/control.py index 91e604e0..a8cf1649 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -908,7 +908,8 @@ class Coverage: def report( self, morfs=None, show_missing=None, ignore_errors=None, file=None, omit=None, include=None, skip_covered=None, - contexts=None, skip_empty=None, precision=None, sort=None + contexts=None, skip_empty=None, precision=None, sort=None, + output_format=None, ): """Write a textual summary report to `file`. @@ -922,6 +923,9 @@ class Coverage: `file` is a file-like object, suitable for writing. + `output_format` provides options, to print eitehr as plain text, or as + markdown code + `include` is a list of file name patterns. Files that match will be included in the report. Files matching `omit` will not be included in the report. @@ -953,13 +957,16 @@ class Coverage: .. versionadded:: 5.2 The `precision` parameter. + .. versionadded:: 6.6 + The `format` parameter. + """ with override_config( self, ignore_errors=ignore_errors, report_omit=omit, report_include=include, show_missing=show_missing, skip_covered=skip_covered, report_contexts=contexts, skip_empty=skip_empty, precision=precision, - sort=sort + sort=sort, output_format=output_format, ): reporter = SummaryReporter(self) return reporter.report(morfs, outfile=file) |