Branch coverage mismatch between Coverlet and generated OpenCover report
See original GitHub issueHi!
I have a situation where Coverlet reports the following.
Generating report
+----------+------+--------+--------+
| Module | Line | Branch | Method |
+----------+------+--------+--------+
| DbReader | 100% | 99.7% | 100% |
+----------+------+--------+--------+
Then if I convert the coverage.opencover.xml
to an HTML report using ReportGenerator I get a branch coverage of 100%
Where should I start to look here? Is there some way to make Coverlet output exactly where the branch coverage is insufficient?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
Branch coverage differs between OpenCover and Cobertura
ReportGenerator reports 50% branch coverage for both of your files. OpenCover counts one extra branch for the method. ReportGenerator only takes ...
Read more >OpenCover C# Branch Coverage says there should be a ...
Basically, the compiler generates some extra code in an async method, and OpenCover looks at the compiled code. I was not able to...
Read more >Wrong code coverage report (based on opencover format)
Error observed: The opencover report shows 100% line and branch coverage, but SonarCloud shows less. Potential workaround: I have changed the ...
Read more >Code Coverage Metrics - Steve Dunn
This post looks at code coverage metrics - how they're generated, how to view them ... To get an OpenCover report, we need...
Read more >Collect human-readable code coverage report for .net core ...
Collect the coverage in a folder (./CodeCoverage in my case) and mention the format opencover. WHY opencover? ReportGenerator will generate a human-readable ...
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
Ok I’ll take a look ASAP.
Hi @MarcoRossignoli and thanks for your quick reply.
Here is my coverage file 👍
coverage.json.zip