Exclude WCF service reference from being included in Code Coverage

Viewed 163

I have a WCF service reference in .net Core 3.1 application. I can apply [ExcludeFromCodeCoverage] attribute, but class is created every time I update the reference. I am using Coverlet for collecting Code Coverage data while building.

I saw in this post that I can put attributes at assembly level but there is no AssemblyInfo.cs for .netCore

Any input here will be appreciated

1 Answers

You may want to approach addressing it from the commandline execution and and add an Exclude parameter with the file names that you don't want included.

Related