diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2020-07-03 19:59:15 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2020-07-03 19:59:15 -0400 |
commit | a97cf2c471324b7db4a76b14826f5026ec24cfd2 (patch) | |
tree | 3bd16b8e364942769eedbf85a6e42cd7af902525 | |
parent | ba7e1db306b5a7f4cb699de90913c7dd8838018f (diff) | |
download | python-coveragepy-git-a97cf2c471324b7db4a76b14826f5026ec24cfd2.tar.gz |
Report sorting option is thanks to Jerin Peter George
-rw-r--r-- | CHANGES.rst | 4 | ||||
-rw-r--r-- | CONTRIBUTORS.txt | 1 | ||||
-rw-r--r-- | doc/cmd.rst | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 46f86798..593e4ca9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -39,6 +39,9 @@ Unreleased - The ``--skip-empty`` option is now available for the XML report, closing `issue 976`_. +- The ``coverage report`` command now accepts a ``--sort`` option to specify + how to sort the results. Thanks, Jerin Peter George (`pull request 1005`_). + - If coverage fails due to the coverage total not reaching the ``--fail-under`` value, it will now print a message making the condition clear. Thanks, Naveen Yadav (`pull request 977`_). @@ -54,6 +57,7 @@ Unreleased .. _pull request 932: https://github.com/nedbat/coveragepy/pull/932 .. _pull request 977: https://github.com/nedbat/coveragepy/pull/977 .. _pull request 982: https://github.com/nedbat/coveragepy/pull/982 +.. _pull request 1005: https://github.com/nedbat/coveragepy/pull/1005 .. _issue 779: https://github.com/nedbat/coveragepy/issues/779 .. _issue 858: https://github.com/nedbat/coveragepy/issues/858 .. _issue 976: https://github.com/nedbat/coveragepy/issues/976 diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index cc005f31..ce6e7cf7 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -71,6 +71,7 @@ Ilia Meerovich Imri Goldberg Ionel Cristian Mărieș JT Olds +Jerin Peter George Jessamyn Smith Joe Doherty Joe Jevnik diff --git a/doc/cmd.rst b/doc/cmd.rst index 63aa6ac5..344025da 100644 --- a/doc/cmd.rst +++ b/doc/cmd.rst @@ -375,6 +375,8 @@ details. The ``--precision`` option controls the number of digits displayed after the decimal point in coverage percentages, defaulting to none. +The ``--sort`` option is the name of a column to sort the report by. + Other common reporting options are described above in :ref:`cmd_reporting`. |