views:

381

answers:

2

when i run this:

sh "#{MBUNIT_PATH}Gallio.Echo.exe /no-echo-results src/#{dll}/bin/Debug/#{dll}.dll"

in my rakefile, gallio runs my mbunit tests, and TC picks up the results :D

but this:

sh "#{NUNIT_PATH}nunit-console.exe /nologo src/#{dll}/bin/Debug/#{dll}.dll"

does run my tests, but TC doesnt pick up the result :(

I first tried running my nunit tests through gallio, but it doesnt detect any tests :(

using the teamcity nunit launcher i get:

Failure executing test(s) on assembly nunittests.dll with NUnit 2.5.0.9122. Version 2.0 is not a compatible version.

Can anyone help me with a solution to this? Either how i can get gallio to pick up my nunit tests or how to get nunit-console to be picked up by tc.

Thanks

+1  A: 

Josh Flanagan posted on this topic here; LosTechies.com Maybe this can help you out.

Jeff Spicoli
+1  A: 

You need to use the inbuilt NUnit runner.

If you look in a build agent's directory, just search for *.exe, there should be one called NUnit-Runner.exe or something like that. You then need to use that instead.

Have a look at this article, about 3/4 of the way down he shows what I mean: http://andypike.wordpress.com/2009/08/08/building-net-solution-with-rake-and-teamcity/

To achieve the above I dom something similar in Ruby. I setup a $NUnit variable, if the property ENV['AGENT_WORKING_DIR'] exists then I use the Team City NUnit runner, else I use the normal NUnit (ie so developers can run the Rake script).

Bealer