-
Notifications
You must be signed in to change notification settings - Fork 387
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
[BUG] Documentation states you can exclude by attribute with short name or full name - cannot by long name #1589
Comments
OK I see the problem. From my point of view we should adapt the documentation and/or consider implementing also the fully qualified attribute name. I don't have any details about why it was decided in the past for coverlet to only check the attribute name. Maybe forgotten to consider or the one implementing this didn't see the need for it. But from my point of view, it wouldn't be much implementation effort to additionally check for the fully qualified name. I just wonder about the use cases a bit? The only thing I can think of is someone having two attributes with the same name in different namespaces of his application and wants to exclude both of them. @MarcoRossignoli @Bertk What do you think? Should we implement this? Even if it is just one use case I can think of, it seems valid to me. |
Changing the documentation is probably sufficient. Having two similarly named attribute types serving different purposes seems highly unlikely. |
@daveMueller I think full name shall be supported. |
I don't recall but maybe we did some regression here, we could support full name too. |
OK I work on this... |
Describe the bug
From https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/GlobalTool.md
To Reproduce
Create a custom attribute, apply it at any level.
Supply fully qualified through one of the drivers
Expected behavior
Is it excluded
Actual behavior
Is not excluded
Additional context
coverlet/src/coverlet.core/Instrumentation/Instrumenter.cs
Line 775 in a0bd87d
None of the Instrumenter tests supply the attributesToIgnore as fully qualified
e.g
coverlet/test/coverlet.core.tests/Instrumentation/InstrumenterTests.cs
Line 150 in a0bd87d
The text was updated successfully, but these errors were encountered: