p10tyr / PrestoCoverage

Visual Studio Extension for simple coverage visuals
Apache License 2.0
45 stars 6 forks source link

PrestoCoverage should honor ExcludeFromCodeCoverage on display #30

Open dozer75 opened 4 years ago

dozer75 commented 4 years ago

PrestoCoverage shows code that is marked with the ExcludeFromCodeCoverage as uncovered and thus shows incorrect code coverage result.

image

When running Coverlet with and without ExcludeFromCodeCoverage I can see that the percentage differs; so it handles it in it's calculation; but the result in the coverlet file indicates that it isn't executed (see example below), so I think you'll have to check for the ExcludeFromCodeCoverage on each assembly/class/method and ignore the related code on display.

image