vstest-docs icon indicating copy to clipboard operation
vstest-docs copied to clipboard

Code coverage difference between dotnet test and Visual Studio UI "Analysis Code Coverage for All Tests"

Open eapenjohn opened this issue 5 years ago • 1 comments
trafficstars

we are seeing a difference in code coverage results created from Visual studio UI and the command line option dotnet test , even though both using the same runsettings file.

After deep look found out the Ui is using coverable lines to calculate the percentage.

is there any option available in dotnet test to calculate the coverage based on Coverable lines?

eapenjohn avatar Sep 23 '20 10:09 eapenjohn

If Ii is using coverable lines to calculate the percentage, what is command line using instead?

gioce90 avatar Feb 15 '22 15:02 gioce90