NUnit console/NCover console


I've been chewing on some issues for a couple of days now: I have TeamCity 3.1.1 installed on Windows Vista SP1. I created an msbuild script that runs perfectly fine. This build script uses the NUnit task of the MsBuild community tasks and the NCover/NCoverExplorer tasks put out by Kiwidude. Whenever I run this MsBuild script, I get the following errors when the NUnit task or NCover task is run:

error MSB6006: nunit-console.exe is afgesloten met code -1.


error MSB6006: NCover.Console.exe is afgesloten met code 1.

I've tried a lot of things, but nothing seems to help. It only happens when the build is run by TeamCity. I've attached a full build log. Any thoughts?

Thanks in advance,


1 comment
Comment actions Permalink

NUnit runner started by TeamCity from NUnit/NUnitTeamCity tasks may start sub processes to run the tests. NCover registers some environment variables to enable profiling the child process. Thus it may fail. There are a workaround for
that case. You may start DotNet-listeners\bin\JetBrains.TeamCity.PlatformProcessRunner process with option to start JetBrains.BuildServer.NUnitLauncher.exe to run your tests. Starting from TeamCity 4.0 it is possible to attach TeamCity addin for NUnit.



Please sign in to leave a comment.