NCover with CrusieControl.net and multiple projs

NCover with CrusieControl.net and multiple projs

I have ncover and ncover explorer currently working with one vs2008 project, but my solution currently consists of multiple projects with multiple test assemblies with the assemblies existing in multiple directories. How do I get them all to show up in the same ncover report in ccnet? Do I need to copy all dlls to the same folder and then run ncover against that? Below is my current nant task configuration:

  <target name="ncover" description="Generate code coverage using NCover">
      <ncover program="C:\Program Files\NCover\NCover.Console.exe"
        commandLineExe="C:\Program Files\NUnit 2.4.6\bin\nunit-console.exe"
        commandLineArgs="MyProject.Services.Tests.dll"
        workingDirectory="C:\CI\MyProject\content\Product\Production\MyProject.Services.Tests\bin\Release"
        coverageFile="C:\CI\MyProject\reports\RawCoverage.xml"
        logFile="Coverage.log"
        fileExclusionPatterns="MyProject.Services.Tests.dll"
        projectName="Unknown"
        coverageHtmlDirectory="C:\CI\MyProject\reports"/>


<ncoverexplorer program="C:\Program Files\NCover\NCoverExplorer.Console.exe" projectName="MyProject" reportType="4" outputDir="c:\CI\MyProject\Reports\" xmlReportName="CoverageReport-results.xml" showExcluded="True" satisfactoryCoverage="80">
    <fileset>
        <include name="C:\CI\MyProject\Reports\RawCoverage.xml" /> 
    </fileset>


RE: NCover with CrusieControl.net and multiple pro

dosborn278,

You'll want to take a look at NCoverExplorer.Console, which includes the ability to merge coverage files. You can read more about NCoverExplorer.Console and merging here: http://www.ncover.com/documentation/explorerconsole/merging. There is also an NCoverExplorer.Console NAnt task: http://www.ncover.com/documentation/buildtasks#nant.

Alan NCover Team