Skip to content

Total coverage no longer easily regexable #284

@desmondgc

Description

@desmondgc

In coverlet.msbuild v2.4.0, the total coverage output looks like this:

Total Line: 83.3%
Total Branch: 86.4%
Total Method: 83.9%

This functionality was added in #180 to support coverage badges in CI systems. In our GitLab config I can easily report on total branch coverage using the following: coverage: '/^Total Branch: \d+\.\d+/'

With the changes introduced in #271 / coverlet.msbuild v2.5.0, the output now looks like this:

+---------+--------+--------+--------+
|         | Line   | Branch | Method |
+---------+--------+--------+--------+
| Total   | 83.3%  | 86.4%  | 83.9%  |
+---------+--------+--------+--------+
| Average | 41.65% | 43.2%  | 41.95% |
+---------+--------+--------+--------+

This output format is much harder to work with. Can we eliminate the table?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions