Newbie: Can't get coverage for anything but test assembly
Newbie: Can't get coverage for anything but test assembly
Hi,
Just started using NCover in a CI build (which is also new to me). I am using 1.5.7 and the latest NAnt tasks. Here is the build target:
<ncover program="tools\ncover\ncover.console.exe"
commandLineExe="Tools\NUnit\nunit-console.exe"
commandLineArgs="${build.dir}\Debug\UnitTests\Customer.Gis.Services.Address.Contracts.UnitTests.dll"
coverageFile="${build.dir}\test-reports\GSMP.coverage.xml"
logLevel="Verbose"
logFile="gsmp.coverage.log"
excludeAttributes="CoverageExcludeAttribute" >
<assemblies basedir="${build.dir}\Debug\UnitTests">
<include name=".Contracts.dll" />
<exclude name=".UnitTests.dll" />
</assemblies>
</ncover>
<ncoverexplorer program="tools\ncoverexplorer\ncoverexplorer.console.exe"
projectName="GSMP"
outputDir="${build.dir}\test-reports"
satisfactoryCoverage="80"
reportType="ModuleClassSummary"
htmlReportName="CoverageSummary.html"
showExcluded="True"
sort="CoveragePercentageDescending">
<!-- filter="HideFullyCovered" -->
<fileset>
<include name="GSMP.coverage.xml" />
</fileset>
<exclusions>
<exclusion type="Assembly" pattern=".UnitTests." />
</exclusions>
</ncoverexplorer>
The coverage report ONLY shows the UnitTests module and classes. I want it to show the coverage on the *.Contracts.dll assembly. I am sure I am screwing this up, but I can't find how. Here is the coverage.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="coverage.xsl" type="text/xsl"?>
<!-- saved from url=(0022)http://www.ncover.org/ -->
<coverage profilerVersion="1.5.7 Beta" driverVersion="1.5.7.0" startTime="2007-04-23T17:03:26.9337102-04:00" measureTime="2007-04-23T17:03:30.2690118-04:00">
<module moduleId="15" name="C:\Users\ggoodrich.ESI\AppData\Local\Temp\nunit20\ShadowCopyCache\633129446080083516\Tests\assembly\dl3\7cbb7662\103783d5_ea85c701\Customer.Gis.Services.Address.Contracts.UnitTests.DLL" assembly="Customer.Gis.Services.Address.Contracts.UnitTests" assemblyIdentity="Customer.Gis.Services.Address.Contracts.UnitTests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, processorArchitecture=MSIL">
<method name="Address_CanSetStreetNumberAndStreetName" excluded="false" instrumented="true" class="Customer.Gis.Services.Address.Contracts.UnitTests.ContractsTestFixture">
<seqpnt visitcount="1" line="12" column="13" endline="12" endcolumn="53" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="13" column="13" endline="13" endcolumn="39" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="14" column="13" endline="14" endcolumn="38" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="15" column="13" endline="15" endcolumn="113" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="16" column="13" endline="16" endcolumn="81" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="17" column="13" endline="17" endcolumn="86" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="19" column="9" endline="19" endcolumn="10" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
</method>
<method name="Address_CanSetCityStateAndZip" excluded="false" instrumented="true" class="Customer.Gis.Services.Address.Contracts.UnitTests.ContractsTestFixture">
<seqpnt visitcount="1" line="24" column="13" endline="24" endcolumn="53" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="25" column="13" endline="25" endcolumn="39" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="26" column="13" endline="26" endcolumn="40" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="27" column="13" endline="27" endcolumn="38" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="28" column="13" endline="28" endcolumn="32" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="29" column="13" endline="29" endcolumn="37" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="30" column="13" endline="30" endcolumn="112" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="31" column="13" endline="31" endcolumn="75" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="32" column="13" endline="32" endcolumn="70" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="33" column="13" endline="33" endcolumn="77" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
<seqpnt visitcount="1" line="34" column="9" endline="34" endcolumn="10" excluded="false" document="c:\dev\GSMP\src\Customer.Gis.Services.Address.Contracts.UnitTests\ContractsTestFixture.cs" />
</method>
</module>
</coverage>
(sorry for the messy post)
Any ideas? Any help appreciated.....and sorry for my newbieness
Ruprict