NCover nant task does not exclude test assemblies.

NCover nant task does not exclude test assemblies.

I'm using ncover and ncoverexplorer within nant (ccnet).

In the ncover report, the test dll's are excluded, but in the ncover details, those dll's are not excluded.

Here's the script:

<ncover program="${ncover.console.exe}" 
               commandLineExe="${nunit.console.exe}" 
               commandLineArgs="${path::get-file-name(filename)} /xml=&quot;${tests.output.dir}\${basename}-nunit.result.xml&quot; /nologo /noshadow" 
               workingDirectory="${path::get-directory-name(filename)}" 
               coverageFile="${ncover.output.dir}\${basename}-ncover.result.xml" 
               logLevel="Verbose" 
               logFile="${ncover.output.dir}\${ncover.log}" 
               verbose="true">
        <assemblies basedir="${source.dir}">
          <exclude name="**Tests**" />
        </assemblies>
</ncover>

 

Thanks,

Adrian