Coverlet: Display combined coverage even when Threshold is not exceeded

Created on 13 May 2018  路  4Comments  路  Source: coverlet-coverage/coverlet

Threshold allows us to fail a build when coverage drops beyond certain percentage.
This percentage is combined from all modules involved.

It would be great to see this percentage even when Threshold is not used or exceeded.

Most helpful comment

All 4 comments

Hi @ptupitsyn, If I understand your suggestion correctly, this is already implemented, there just hasn't been a new release containing this new code yet :) Not sure when @tonerdo plans to create another release.

The new code will show you something like the following on every test run:

| Module        | Line   | Branch | Method |
+---------------+--------+--------+--------+
| coverlet.core | 90.6%  | 86.7%  | 93.8%  |
+---------------+--------+--------+--------+

Line, Branch and Method details are awesome!

I am talking about something like this though:

| Module                  | Coverage |
|-------------------------|----------|
| A.B.C                   | 80.5%    |
| Foo.Bar                 | 50.0%    |
| Baz.Qux                 | 60.0%    |
|-------------------------|----------|
| Average                 | 63.5%    |

Because when I set /p:Threshold, I get errors like

Overall average coverage '63.5%' is lower than specified threshold '70%'.
So this number, 63.5%, is only visible when there is a Threshold error.

Oh I see what you mean. I think this is a duplicate of #29

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MarcoRossignoli picture MarcoRossignoli  路  4Comments

coderpatros picture coderpatros  路  3Comments

alexanderkozlenko picture alexanderkozlenko  路  8Comments

escalonn picture escalonn  路  6Comments

arohithr8 picture arohithr8  路  5Comments