Total coverage no longer easily regexable
See original GitHub issueIn 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?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:9
Top Results From Across the Web
Total coverage no longer easily regexable · Issue #284
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 ...
Read more >No coverage report in gitlab despite valid regex and ...
I put it in in the coverage parsing setting under settings > general pipelines, and also added coverage: /Total\s*\|\s*(\d+\.\d+)%/ to the job ...
Read more >4.4. Validate Traditional Date Formats
You want to use a simple regex that simply checks whether the input looks like a date, without trying to weed out things...
Read more >L'Oreal Paris Infallible Total Cover Foundation, Sand Beige ...
Conceal imperfections & define features. Locks in makeup for a 'just applied' look all day. Effortless blending. Easy & even makeup application.
Read more >L'Oréal Paris Infallible Total Cover Foundation, Natural Buff ...
Conceal imperfections & define features. Locks in makeup for a 'just applied' look all day. Effortless blending. Easy & even makeup application.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
None of the above regex did the trick for me. What actually helped
Total.*?(\d+(?:\.\d+)?)%
Close for stale, related feature issue to avoid regex usage https://github.com/tonerdo/coverlet/issues/542