You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When coverlet runs on my project it reports 72.7%. When I take the output (I used the opencover reporter) and run that through ReportGenerator, it shows the coverage as 66.7%. If I change the output to Cobertura I get 62.2%
It looks like the sequenceCoverage attribute matches what coverlet reports. It looks like visitedSequencePoints / numSequencePoints matches what ReportGenerator is reporting for Cobertura.
I would expect the two tools to report the same value. I have not yet researched where those numbers are coming from.
When coverlet runs on my project it reports 72.7%. When I take the output (I used the opencover reporter) and run that through ReportGenerator, it shows the coverage as 66.7%. If I change the output to Cobertura I get 62.2%
Opening the coverage.xml file I see this summary:
It looks like the
sequenceCoverage
attribute matches what coverlet reports. It looks likevisitedSequencePoints / numSequencePoints
matches what ReportGenerator is reporting for Cobertura.I would expect the two tools to report the same value. I have not yet researched where those numbers are coming from.
Update:
It looks like the problem might be here (https://github.com/tonerdo/coverlet/blob/master/src/coverlet.core/CoverageSummary.cs) where the code takes the average of averages rather than calculating the actual average from the raw data.
The text was updated successfully, but these errors were encountered: