NCover exclusions not working

NCover exclusions not working

We have come autogenerated classes generated by MVC whose names start with T4MVC. I want to exclude them from our coverage.

I tried using the following Perl compatible regex, but none seem to have worked. I added them in the exclusion "Types" section in NCover explorer:

^[T4MVC]\w*

^\w[MVC]\w

When I used the regex testers available online, it looks like the regex that I have mentioned above are correct.

Can anyone suggest as to what is wrong with the regex or if NCover works differently.


RE: NCover exclusions not working

I even tried using the regex ^\w(MVC)\w$

This din't work either.


RE: NCover exclusions not working

Does .T4MVC. work?


RE: NCover exclusions not working

.T4MVC. worked!