Welcome, Guest!

Exception: Using CruseControl.NET to call nCover

Exception: Using CruseControl.NET to call nCover

by jdjarvis on Wednesday July 09, 2008, 09:18 AM

I am using CruiseControl.NET to call nCover, and I am recieving the following exception/output.

Command: /assemblies BasicTesting /xml:C:\Projects\Server\Simulator\Artifacts\CoverageResults\CoverageReport.log
Command Args:
Working Directory:
Assemblies:
******************* Program Output *******************
***************** Exception *****************
-- Top-level exception (NCover.Framework.ProfilerRuntimeException)
The process could not be started. Ensure that it runs outside of NCover.

Does anyone know why I am recieving this error. I have also included the config block in CruiseControl.NET below.

Thanks,
Jeremy

My CruiseContrl.NET block:

<exec>
<executable>C:\Program Files\Ncover\NCover.Console.exe</executable>
<basedirectory>C:\Projects\Server\Simulator\TheSimulator\ConsoleApplication\BasicTesting\bin\debug</basedirectory>
<buildargs>"/assemblies BasicTesting /xml:C:\Projects\Server\Simulator\Artifacts\CoverageResults\CoverageReport.log"</buildargs>
<buildtimeoutseconds>10</buildtimeoutseconds>
</exec>

RE: Exception: Using CruseControl.NET to call nCover

by sporewell on Thursday July 10, 2008, 05:18 AM

NCover expects to recieve the path to the program to profile on its command line. NCover interprets the first non-NCover specific argument to be that executable, and tries to execute it. To correct the problem, add the application executable path to the beginning of the <buildargs> value.

Stephen

RE: Exception: Using CruseControl.NET to call nCover

by jdjarvis on Thursday July 10, 2008, 06:06 AM

OK. Your right. So, I have changed that xml markup to this, and I am still getting an error.

----------Here is the new nCover block in my config file:-------------------

<exec>
<executable>C:\Program Files\Ncover\NCover.Console.exe</executable> <basedirectory>C:\Projects\Server\Simulator\TheSimulator\ConsoleApplication\BasicTesting\bin\debug</basedirectory>
<buildargs>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe /testcontainer:C:\Projects\Server\Simulator\TheSimulator\ConsoleApplication\BasicTesting\bin\debug\BasicTesting.dll //log-file ASDFlog.log</buildargs>
<buildtimeoutseconds>10</buildtimeoutseconds>
</exec>

----------------Here is the error that I am getting:---------------------------

Command: C:\Program
Command Args: "Files\Microsoft" "Visual" "Studio" "9.0\Common7\IDE\MSTest.exe" "/testcontainer:C:\Projects\Server\Simulator\TheSimulator\ConsoleApplication\BasicTesting\bin\debug\BasicTesting.dll"
Working Directory:
Assemblies:
******************* Program Output *******************
***************** Exception *****************
-- Top-level exception (NCover.Framework.ProfilerRuntimeException)
The process could not be started. Ensure that it runs outside of NCover.

I haven't found any documentation on this error. Any thoughts?
Thanks,
Jeremy

RE: Exception: Using CruseControl.NET to call nCover

by sporewell on Monday July 14, 2008, 05:32 AM

you need to enclose "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe" in quotes. In general, any NCover argument that includes spaces should be enclosed in quotes.

Stephen