Skip to content
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

Merged
merged 1 commit into from
Aug 14, 2023
Merged

Get coverage numbers up #4279

merged 1 commit into from
Aug 14, 2023

Conversation

geeknoid
Copy link
Member

@geeknoid geeknoid commented Aug 11, 2023

null

Microsoft Reviewers: Open in CodeFlow

@@ -653,16 +654,19 @@ private void Diag(DiagnosticDescriptor desc, Location? location, params object?[
_reportDiagnostic(Diagnostic.Create(desc, location, messageArgs));
}

[ExcludeFromCodeCoverage]
Copy link
Member

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.

Copy link
Member Author

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.

@geeknoid geeknoid force-pushed the geeknoid/cov branch 4 times, most recently from b3b8b1e to 6abf449 Compare August 12, 2023 06:13
@RussKie
Copy link
Member

RussKie commented Aug 14, 2023

I suggest pushing this change in to the internal repo and kicking off an internal build to verify it builds successfully.

Copy link
Member

@RussKie RussKie left a 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 - :shipit:

@geeknoid geeknoid merged commit 2cfffaf into main Aug 14, 2023
6 checks passed
@geeknoid geeknoid deleted the geeknoid/cov branch August 14, 2023 12:55
@ghost ghost added this to the 8.0 RC1 milestone Aug 14, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants