question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Total coverage no longer easily regexable

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:9

github_iconTop GitHub Comments

2reactions
gmarokovcommented, Jul 27, 2019

None of the above regex did the trick for me. What actually helped Total.*?(\d+(?:\.\d+)?)%

0reactions
MarcoRossignolicommented, Oct 7, 2019

Close for stale, related feature issue to avoid regex usage https://github.com/tonerdo/coverlet/issues/542

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found