diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-09-08 07:54:51 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-09-08 07:54:51 -0400 |
commit | ac7d7d9d0d10e52b4f45eded597ae962f63c4905 (patch) | |
tree | e35709afc6c26fc0139cae9da8d7ea53c281db0d /coverage/control.py | |
parent | f12fcc57542ada16ae24fefea7d34d82b9302a03 (diff) | |
download | python-coveragepy-git-ac7d7d9d0d10e52b4f45eded597ae962f63c4905.tar.gz |
Clarify report() arguments
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/coverage/control.py b/coverage/control.py index 08d21959..04cb4b5d 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -695,16 +695,26 @@ class Coverage(object): file=None, # pylint: disable=redefined-builtin omit=None, include=None, skip_covered=None, ): - """Write a summary report to `file`. + """Write a textual summary report to `file`. Each module in `morfs` is listed, with counts of statements, executed statements, missing statements, and a list of lines missed. + If `show_missing` is true, then details of which lines or branches are + missing will be included in the report. If `ignore_errors` is true, + then a failure while reporting a single file will not stop the entire + report. + + `file` is a file-like object, suitable for writing. + `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. - If `skip_covered` is True, don't report on files with 100% coverage. + If `skip_covered` is true, don't report on files with 100% coverage. + + All of the arguments default to the settings read from the + :ref:`configuration file <config>`. Returns a float, the total percentage covered. |