diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-05 20:12:14 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-05 20:18:57 -0400 |
commit | fe0c4beea3728fff51343b257d070f72a0ddccd8 (patch) | |
tree | 9b367a9758b6040e2ab77532ce69cb0bbb9a5635 | |
parent | bf3e96aa0aaba5f8e2095551498f50f1080f7f74 (diff) | |
download | python-coveragepy-git-fe0c4beea3728fff51343b257d070f72a0ddccd8.tar.gz |
docs: a little refactoring of the recent xml doc change
-rw-r--r-- | doc/cmd.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/cmd.rst b/doc/cmd.rst index 5957bc11..d5439f73 100644 --- a/doc/cmd.rst +++ b/doc/cmd.rst @@ -488,6 +488,8 @@ compatible with `Cobertura`_. You can specify the name of the output file with the ``-o`` switch. +Other common reporting options are described above in :ref:`cmd_reporting`. + To include complete file paths in the output file, rather than just the file name, use [include] vs [source] in your ".coveragerc" file. @@ -505,9 +507,9 @@ which will result in .. code:: xml - <class branch-rate="0" complexity="0" filename="bar/hello.py" line-rate="1" name="hello.py"> - <class branch-rate="0" complexity="0" filename="bar/baz/hello.py" line-rate="1" name="hello.py"> - <class branch-rate="0" complexity="0" filename="foo/hello.py" line-rate="1" name="hello.py"> + <class filename="bar/hello.py"> + <class filename="bar/baz/hello.py"> + <class filename="foo/hello.py"> in place of this: @@ -522,12 +524,10 @@ which may result in .. code:: xml - <class branch-rate="0" complexity="0" filename="hello.py" line-rate="1" name="hello.py"> - <class branch-rate="0" complexity="0" filename="baz/hello.py" line-rate="1" name="hello.py"> + <class filename="hello.py"> + <class filename="baz/hello.py"> -Other common reporting options are described above in :ref:`cmd_reporting`. - .. _cmd_json: |