Code coverage seems to ignore assembly:ExcludeFromCodeCoverage

Within .NET, you can use the [ExcludeFromCodeCoverage] attribute to exclude code. This can be done, a ton of items, including assemblies.

I’ve I’m looking at this build however, it seems that this attribute is ignored.

Am I doing something wrong here, or is this not taken into account?

Hey @Corniel, I found this thread from a couple years ago where our PM acknowledged this gap. I also found an internal ticket about this, but as far as I can see, no work has been done on it. I’m going to assign this to our PMs in case they want to comment on it, but to be honest, this use case doesn’t seem to have a lot of traction.

I’m not sure where in the code (base) it should be. Otherwise I could potentially create a PR myself.