Skip to content

Commit a97cf2c

Browse files
committed
Report sorting option is thanks to Jerin Peter George
1 parent ba7e1db commit a97cf2c

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ Unreleased
3939
- The ``--skip-empty`` option is now available for the XML report, closing
4040
`issue 976`_.
4141

42+
- The ``coverage report`` command now accepts a ``--sort`` option to specify
43+
how to sort the results. Thanks, Jerin Peter George (`pull request 1005`_).
44+
4245
- If coverage fails due to the coverage total not reaching the ``--fail-under``
4346
value, it will now print a message making the condition clear. Thanks,
4447
Naveen Yadav (`pull request 977`_).
@@ -54,6 +57,7 @@ Unreleased
5457
.. _pull request 932: https://github.com/nedbat/coveragepy/pull/932
5558
.. _pull request 977: https://github.com/nedbat/coveragepy/pull/977
5659
.. _pull request 982: https://github.com/nedbat/coveragepy/pull/982
60+
.. _pull request 1005: https://github.com/nedbat/coveragepy/pull/1005
5761
.. _issue 779: https://github.com/nedbat/coveragepy/issues/779
5862
.. _issue 858: https://github.com/nedbat/coveragepy/issues/858
5963
.. _issue 976: https://github.com/nedbat/coveragepy/issues/976

CONTRIBUTORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Ilia Meerovich
7171
Imri Goldberg
7272
Ionel Cristian Mărieș
7373
JT Olds
74+
Jerin Peter George
7475
Jessamyn Smith
7576
Joe Doherty
7677
Joe Jevnik

doc/cmd.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ details.
375375
The ``--precision`` option controls the number of digits displayed after the
376376
decimal point in coverage percentages, defaulting to none.
377377

378+
The ``--sort`` option is the name of a column to sort the report by.
379+
378380
Other common reporting options are described above in :ref:`cmd_reporting`.
379381

380382

0 commit comments

Comments
 (0)