We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When excluding a propety from code coverage using de ExcludeFromCodeCoverage attribute this is ignored in the coverage result.
Example code:
public sealed class Euro : ICurrencyDefinition { private const string currencyCode = "EUR"; [ExcludeFromCodeCoverage] public string CurrencyCode { get { return currencyCode; } } [ExcludeFromCodeCoverage] public string Name { get { return "Euro"; } } [ExcludeFromCodeCoverage] public int NumberOfDecimals => 2; }
All the above situations are marked as missing test coverage.
The properties are marked as covered.
The properties are not marked as missing code coverage.
Exclude the whole class from code coverage.
The text was updated successfully, but these errors were encountered:
@akshaybheda #290 issue is for assembly attributes. @tsleegers Dupe of #269 also this link contains a workaround
Sorry, something went wrong.
close for dup
No branches or pull requests
Description
When excluding a propety from code coverage using de ExcludeFromCodeCoverage attribute this is ignored in the coverage result.
Repro steps
Example code:
All the above situations are marked as missing test coverage.
Expected behavior
The properties are marked as covered.
Actual behavior
The properties are not marked as missing code coverage.
Known workarounds
Exclude the whole class from code coverage.
Related information
The text was updated successfully, but these errors were encountered: