-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
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
Get coverage numbers up #4279
Get coverage numbers up #4279
Conversation
@@ -653,16 +654,19 @@ private void Diag(DiagnosticDescriptor desc, Location? location, params object?[ | |||
_reportDiagnostic(Diagnostic.Create(desc, location, messageArgs)); | |||
} | |||
|
|||
[ExcludeFromCodeCoverage] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it because the compiler generates some code that is never accessed?
If so I would assume that compiler generated code could be excluded and the tool should have an option for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I filed a bug about this against Roslyn. Not all the generated code in a record type is properly annotated. The properties for example don't have annotations. So it messes up coverage.
b3b8b1e
to
6abf449
Compare
I suggest pushing this change in to the internal repo and kicking off an internal build to verify it builds successfully. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's working -
null
Microsoft Reviewers: Open in CodeFlow