PrestoCoverage shows code that is marked with the ExcludeFromCodeCoverage as uncovered and thus shows incorrect code coverage result.
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.
PrestoCoverage shows code that is marked with the
ExcludeFromCodeCoverage
as uncovered and thus shows incorrect code coverage result.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 theExcludeFromCodeCoverage
on each assembly/class/method and ignore the related code on display.