|
#1
|
|||
|
|||
Bug in NUnit task
I added an NUnit task to my build project, pointed it to an NUnit project file and selected "net-2.0" as the target framework. In this case, the build project doesn't report a failure on failing unit tests anymore.
The reason is simple. As long as you don't specify a framework, the command line generated looks like this: Code:
"C:\Program Files\NUnit-Net-2.0 2.2.10\bin\NUnit-console.exe" /nologo nunit.project Code:
C:\WINDOWS\system32\cmd.exe /C clr net-2.0 nunit-console /nologo nunit.project |
#2
|
|||
|
|||
It's actually a bug in NUnit, not VBP. The clr.bat file (needed when specifying a framework version) installed with NUnit does not return the exit code of the test result, but rather the exit code of later commands in the batch file. Extract the attached clr.bat to your NUnit bin path for proper success/failure detection of NUnit tests.
|
|
|