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

Fix property attribute detection #477

Merged
merged 3 commits into from
Jul 3, 2019
Merged

Fix property attribute detection #477

merged 3 commits into from
Jul 3, 2019

Conversation

amweiss
Copy link
Contributor

@amweiss amweiss commented Jun 26, 2019

I realized my initial work on #233 and #232 overlooked custom attributes on properties and checking them against each of the generated methods. This resolves that with a few updated tests and may achieve the desired result for #81 if you add CompilerGenerated to the list of excluded attributes.

I didn't create a new issue for this per the contribution guidelines since it was technically related to an existing one, but let me know if you want one there.

Copy link
Collaborator

@MarcoRossignoli MarcoRossignoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thank's a lot!

@MarcoRossignoli MarcoRossignoli added enhancement General enhancement request bug Something isn't working and removed enhancement General enhancement request labels Jun 27, 2019
@MarcoRossignoli MarcoRossignoli changed the title [Bug fix] Fix property attribute detection Fix property attribute detection Jul 3, 2019
@tonerdo tonerdo merged commit ec04c7d into coverlet-coverage:master Jul 3, 2019
@ardalis
Copy link

ardalis commented Jul 17, 2019

Question: Can someone confirm whether this resolves #81 and if so, which version of coverlet this bug fix is in/will be in? Thanks!

@amweiss
Copy link
Contributor Author

amweiss commented Jul 17, 2019

@ardalis I can confirm if run the nightly build and exclude CompilerGenerated attribute, it does exclude them from my reports (dropping about 80 lines off my coverable lines). I think that achieves the goal of #81 .

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants