iis coverage does not work - precompiled web app

iis coverage does not work - precompiled web app

I have a coverage check configured in nant build files and ncover 1.5.x. I have installed Ncover 2.1 evaluation version and added //iis switch to the exec command.

I had working:

<exec program="${ncover.org.exe}"
      workingdir="${basedir}"
      commandline="&quot;${nant.exe}&quot; nunit.quick //a ${coverage.target} //x ${dir.build}\${solution.name}.Coverage.xml //w ${basedir} "/>

I have added:

<exec program="${ncover.org.exe}"
      workingdir="${basedir}"
      commandline="&quot;${nant.exe}&quot; nunit.quick //a ${coverage.target} //x ${dir.build}\${solution.name}.Coverage.xml //w ${basedir} //iis"/>

I did not find any coverage for ASP.NET (although I do not knot how it should look like, cause there is no example).

Next I have try'ed to remove assembly list:

<exec program="${ncover.org.exe}"
      workingdir="${basedir}"
      commandline="&quot;${nant.exe}&quot; nunit.quick //x ${dir.build}\${solution.name}.Coverage.xml //w ${basedir} //iis"/>

Still, no coverage for ASP.NET. Next I have added (desperate blind shot) disable auto exclusion:

<exec program="${ncover.org.exe}"
      workingdir="${basedir}"
      commandline="&quot;${nant.exe}&quot; nunit.quick //x ${dir.build}\${solution.name}.Coverage.xml //w ${basedir} //na //iis"/>

Still, nothing that resembles ASP.NET coverage.

I use .NET 3.5, and precompiled ASP.NET application on IIS 5.1, here some output:

 [exec] NCover.Console v2.1.0 (Administrator x86) - Code Coverage Analysis for .NET
 [exec] Copyright (c) 2008 Gnoso Inc.
 [exec] http://www.ncover.com
 [exec] Registered to Customer #: 11783
 [exec] NCover Enterprise Edition (1 User)
 [exec] 29 days left in the trial period.
 [exec] Command: D:\usr\tools\nant-0.85\bin\NAnt.exe
 [exec] Command Args: "nunit.quick"
 [exec] Working Directory: D:\projekty\Polkomtel\Kokp
 [exec] Assemblies:
 [exec] ******************* Program Output *******************
 [exec] Stopping Service [Publikowanie w sieci World Wide Web]...
 [exec] Starting Service [Publikowanie w sieci World Wide Web]...
 [exec] The profiler will not connect until you load an ASP.NET page.
 [exec] Press Control-C to stop the service and collect coverage data.
 [exec] NAnt 0.85 (Build 0.85.2478.0; release; 2006-10-14)
 [exec] Copyright (C) 2001-2006 Gerry Shaw
 [exec] http://nant.sourceforge.net
 [exec] Buildfile: file:///D:/projekty/Polkomtel/Kokp/solution.nant.build
 [exec] Target framework: Microsoft .NET Framework 3.5
 [exec] Target(s) specified: nunit.quick

[...] [exec] init: [...] [exec] nunit.quick: [...] [exec] init: [...] [exec] [nunit2] [...] [exec] [nunit2] [exec] BUILD FAILED - 2 non-fatal error(s), 0 warning(s) [exec] D:\projekty\Polkomtel\Kokp\misc\nant\common-solution.nant.build(480,6): [exec] Tests Failed. [exec] Total time: 525.2 seconds. [exec] Stopping Service [Publikowanie w sieci World Wide Web] [exec] End Program Output [exec] Execution Time: 00:08:58.6833320s [exec] Sequence Point Coverage: 0,9% [exec] Branch Coverage: 0,7% [exec] Coverage Xml: D:\projekty\Polkomtel\Kokp\build\Polkomtel-Kokp.Coverage.xml

Please help, I am trying to evaluate if my company should spend fee extra bucks for ASP.NET coverage measurement reporting.


RE: iis coverage does not work - precompiled web a

I seems that it is a case of web application being precompiled. Is it some bug or you're not supporting precopiled applications?


RE: iis coverage does not work - precompiled web a

When the IIS application is precompiled, does it generate .pdb files along with the assemblies? NCover can't profile without symbols. Maybe there is an option to generate pdbs when you do the precompile?


RE: iis coverage does not work - precompiled web a

You're right, that was the case. The precompilation was setup months ago, I just assumed it have been generating .pdb files.