Empty coverage file

Empty coverage file

I always got the empty coverage xml file with :

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="coverage.xsl" type="text/xsl"?>
<!-- saved from url=(0022)http://www.ncover.org/ -->
<coverage />

But I do got the 18k Results.xml. Here is the script in Nant build file:

<exec program="${NCoverDir}\NCover.Console.exe" verbose="true">
   <arg value="//a" />
   <arg value="${TestAssemblyDir}\TestAssembly" />
   <arg value="//x" />
   <arg file="${Result}\NCover\Coverage.xml" /> 
   <arg file="${NUnitDir}\nunit-console.exe" />
   <arg value="${TestAssemblyDir}\TestAssembly.exe  /> 
   <arg value="/xml=${Result}\NCover\Results.xml" />
</exec>

What's wrong with this?


Re: NCover nant task does not exclude test assemblies.

OK.
I've added this filter to the xsl file:

<xsl:apply-templates select="module[contains(@assembly,&quot;Tests&quot;) = false]"/>
("select all modules that not contain "Tests" in the assembly")


Now the files are included in the xml but not in the report.

Still, i prefer not to include those files in the xml.


-- Adrian


Re: NCover nant task does not exclude test assemblies.

Can you clarify what you mean by "ncover report" and "ncover details"?