This project has moved. For the latest updates, please go here.

Coverage differs from VS2010 analysis

Mar 20, 2013 at 4:09 PM

thanks for effort to develop this tool and good documentation!!
I generated a report from VS2010 *.coverxml file without any filters and noticed that number of covered lines differs from VS2010 code coverage results.

Coverage (Lines) = 81.97%
Covered Lines = 18386

Summary of VisualStudioParser:
Coverage (Lines) = 87.2%
Covered Lines = 13932

Why this difference? Any idea?

Thanks for reply
Mar 22, 2013 at 9:32 AM
Edited Mar 22, 2013 at 9:33 AM

ReportGenerator distinguishes between covered, uncovered and uncoverable lines.
Visual Studio differentiates between covered, partially covered and uncovered lines.

If you sum up the covered and partially covered lines from Visual Studio, then you should get pretty much the same result as ReportGenerator.

Hope this helps to explain the difference.