Coverage exclusions now working
Coverage exclusions now working
NCoverExplorer: 1.5.8 Beta" driverVersion="1.5.8.0" I have added extra exclusion information to the config file, run NCover from command line, and found that the new exclusion information is not being used. For example:
<CoverageExclusion>
<ExclusionType>Class</ExclusionType>
<Pattern>OperationMoveForm</Pattern>
<IsRegex>false</IsRegex>
<Enabled>true</Enabled>
</CoverageExclusion>
<CoverageExclusion>
<ExclusionType>Class</ExclusionType>
<Pattern>PropertyGridForm</Pattern>
<IsRegex>false</IsRegex>
<Enabled>true</Enabled>
</CoverageExclusion>
Is there something else I need to do? Previously this had worked, in fact other exclusions I have put in had worked.
NCover is being run from 'command line' NCoverExplroer is run from 'command line', with a /c to referene the config file.
Re: Coverage exclusions now working
Nigel,
Are those classes you are trying to exclude in a namespace? If so, then you need to prefix them, either with a wildcard like "*.OperationMoveForm", or with the fully qualified namespace (e.g. My.NameSpace.OperationMoveForm).
Were your other exclusions you have working at the assembly level? If so then you wouldnt have hit this problem before.
If that still doesnt work, please post the entire contents of your config file.
Regards, Grant.