Hi

I do not know from head if ncover fails when Nunit fails.

example : you run unit, failing tests are found, and I think Nunit exits
with a non zero value
to test this :
place a call of nunit in a bath file, and echo the return value
ex.:
nunit /your arguments as set in ccnet
echo %ERRORLEVEL%

if you see a non zero number, Nunit tells ccnet  that a test fails


now you must do the same with ncover
ncover /your arguments as set in ccnet
echo %ERRORLEVEL%

if you see a non zero number, Ncover tells ccnet that a test fails


Can you try this?

with kind regards
Ruben Willems




On Fri, Mar 27, 2009 at 10:34 AM, schoetbi
<[email protected]>wrote:

>
> Hi,
>
> thanks for this quick answer. the &nCoverTool is a variable we keep
> for easier maintenance of the config. It is defined like this in
> ccnet.config:
> <!DOCTYPE cruisecontrol [
> <!ENTITY nCoverTool      "D:\CcNet\WS\3rdPartyLibs\NCover
> \NCover.Console.exe">
> ]>
>
> It is just the path to NCover.
>
> When I got you right then I need to add another exec task that just
> runs NUnit without the coverage to get the exit code of the
> nunit.console.exe, right?
>
> Isnt there a way to only run the tests once including the coverage and
> get the results out of the results.xml files of each process?
>
> Thanks,
> Tobias

Reply via email to