-
Notifications
You must be signed in to change notification settings - Fork 392
Description
I am trying to find somewhere in the documentation which states the default list of attributes that cause things to be excluded from coverage.
I'm guessing the answer is simply "System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute", but I can't see that documented anywhere.
I'm using the "dotnet test" approach if that matters. I think the documentation for that is https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md
The only mention on there of anything close to this is the example which shows
Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute
but there is no explanation for what that does. For example, does that setting replace the default attributes that are used to exclude things, or does it just add to it?
I have read elsewhere that these are just the "name" of the attribute, without needing to be fully-qualified... it would be nice if that was documented here as well.
And I saw a comment somewhere saying don't forget the "Attribute" on the end. If that's true, if would be useful to have that here too, and if that's the case, then is the "Obsolete" example faulty?