nUnit Return Code?

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

Is there a way to get nUNIT to return an error code from the console
version(like 0 or 1)? I need to signal an automated build tool to stop
upon any errors encountered by nUnit in its analysis of the project
code.

Thanks,

Brian
(e-mail address removed)
 
Brian said:
Is there a way to get nUNIT to return an error code from the console
version(like 0 or 1)? I need to signal an automated build tool to stop
upon any errors encountered by nUnit in its analysis of the project
code.

Thanks,

Brian
(e-mail address removed)

From what?

From a batch file:

%errorlevel%

From an application
Process.ExitCode

0 = success
 
Thanks.

I found the failures to happen as expected by running the nUnit
command line directly in the build step. The batch file I created was
hiding the error code somewhat.

Can I use that %errorlevel% macro to check the errors occurring in the
DOS batch file?

(e-mail address removed)
 
Brian said:
Thanks.

I found the failures to happen as expected by running the nUnit
command line directly in the build step. The batch file I created was
hiding the error code somewhat.

Can I use that %errorlevel% macro to check the errors occurring in the
DOS batch file?

Yes, that't right.

To find out more, go to a command prompt and type:

help if

and it will give you a lot of details on using errorlevel.
 
Back
Top