Welcome, Guest!

Ncover.Console Failed to Execute

Ncover.Console Failed to Execute

by flea# on Monday June 09, 2008, 09:15 AM

Hello,

I am running NCover 1.5.8. When trying to run Ncover from NCoverRunner I am having a strange problem. I am calling MBUnit which actually works. It finds 199 unit tests and executes them. When MBUnit is finished, I receive the following error at the end: "NCover.Console Failed to Execute".

I generated it to NAnt for anyone to see if they can see a problem with what I am doing:

<target>
<ncover>
commandLineExe="C:\Program Files\MbUnit\MbUnit.Cons.exe"
commandLineArgs="C:\Builds\CI\src\Current\BadBobTest\BadBobTest\bin\Debug\BadBobTest.dll /filter-category:CI"
workingDirectory="C:\Builds\CI\src\Current\BadBob\_Lib"
assemblyList="BadBob;BadBob.Messages;BadBob.Tantalus;BadBob.CreditAuthorization;BadBob.Tantalus.Processes.Server"
excludeAttributes="BadBobTest.dll"
logLevel="Quiet"
/>
</target>

I'm simply at a loss on what might be causing it to fail, especially given the fact MBunit runs. The log file is to large for me to include in this post, but I receive a lot of errors saying DLLs are failing to load.

Thanks for any advice,
Flea#

RE: Ncover.Console Failed to Execute

by flea# on Monday June 09, 2008, 12:08 PM

Turns out this was crashing because 2 of the unit test were failing, which was causing the NCover application to return that error. That's...a pretty crappy way of having NCover handle failed Unit test. There should be a more graceful way of dealing with that.

-Flea

RE: Ncover.Console Failed to Execute

by sporewell on Tuesday June 10, 2008, 05:41 AM

NCover 2.1 handles failed unit tests far more gracefully.

Stephen