user1552485
user1552485

Reputation: 53

Add multiple exclusion filters to OpenCover

I know how I can add 1 exclusion filter but, what if I want to exclude multiple projects at one? Do I repeat the "-" statement? or is it comma separated? Particularly, I'm trying to exclude Tests and Installer from the coverage calculation:

<property name="coverage.report.filter" value="+[${product}*]* -[${product}*Installer.Designer*]* -[${product}*Tests]* " />     

Sorry, newbie to OpenCover :)

Thanks in advance!

Upvotes: 2

Views: 3521

Answers (1)

Shaun Wilde
Shaun Wilde

Reputation: 8358

If you type OpenCover.Console.exe on the command line I think you will see that it is accepts space separated filters. This is also detailed on the supplied documentation that should be installed with OpenCover - assuming you are using the download from GitHub.

The information is also available on the WIKI

Upvotes: 1

Related Questions