NCover Exclusion Rules
NCover Exclusion Rules
1) I'm using MSBuild to build my project, in my .proj file I specify exclusions like so:
Assembly /Testing.*/i true
In terms of the exclusion type, if I have a .exe file would my pattern match it as well as a DLL?
2) Also does NCover 2.1.0.0, support coverage inclusions (i.e. I specify one exe or dll and it only checks that one)?
3) I'd expect a rule like below to exclude all 3 items with the names but it isn't excluding any of them.
Assembly
/Appl1.exe|Utilities.dll|Run.Test.exe|Bar.Server.dll/
true
RE: NCover Exclusion Rules
exe and dll are not part of the assembly name so yes it would not matter if it is dll or exe, they will both be found.
NCover 2 does support assembly exclusions but nothing lower than that.
Do not use the .dll or exe part in the pattern. What version of NCover are you using?
Joe
RE: NCover Exclusion Rules
I'm using 2.1, I got the assembly exclusion working fine with a regex.