0

I'd like to limit the coverage of my OpenCover process to something like this:

+[BaseName.NameSpace1.*]* +[BaseName.NameSpace2.*]*

and I'd hope see only those classes under BaseName.NameSpace1 and BaseName.NameSpace2 but in my attempts all I get are those under BaseName.NameSpace2. How would I do this?

Maniaque
  • 712
  • 1
  • 7
  • 20

1 Answers1

0

The syntax looks right assuming you have two assemblies.

The first part between the [] is the assembly (or module) filter and the second part is the namespace/class filter.

it could be that what you actually want is

+[*]BaseName.NameSpace1.* +[*]BaseName.NameSpace2.*

which would filter those namespaces regardless of the assembly

see the Usage wiki entry for "Understanding Filters"

Shaun Wilde
  • 8,228
  • 4
  • 36
  • 56