Failed to start nunit tests from teamcity

I'm having problems running Nunit tests from teamcity using the Nunit build runner.

Until now, these tests are run from the machine that hosts Teamcity and the build agent. And the tests run as expected on this computer. But we transfer tests from this machine to another machine, and when I try to run tests from this other machine, I get the following error:

[10:57:25]: 2012-08-01 10:57:25,688 [9052] ERROR JetBrains.BuildServer.NAntLoggers.NUnitLauncher2 - Compatible parser was not found [10:57:25]: JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit [10:57:25]: Arguments will be recieved implicitly [10:57:25]: JetBrains.BuildServer.NUnitLauncher.exe @@ <xml-arguments-file> [10:57:25]: JetBrains.BuildServer.NUnitLauncher.exe {v1.1|v2.0|mono-1.0|mono-2.0|ANY} {MSIL|x86|x64} Plugin{|Plugin...} [10:57:25]: Plugin PartCover: [10:57:25]: /partcover:<path to PartCover.exe> [/partcover-arg:<arg>]* [/partcover-arguments:<arguments line>] [/partcover-platform:<MSIL|x86|x64|NATIVE>@<v1.1|v2.0|ANY|NATIVE>] [/partcover-reg:true] [10:57:25]: Where: [10:57:25]: /partcover-arg: argument should be repeated for every argument of PartCover [10:57:25]: /partcover-arguments: argument should be excaped to be passed to the program as one argument [10:57:25]: Plugin mstest: [10:57:25]: /mstestlocation:[ directory name ] /testcontainer:[ file name ] [/isolated] /runconfig:[ file name ] [10:57:25]: Plugin dotCover: [10:57:25]: /dotcover:<path to dotCover.exe> [/dotcover-platform:<MSIL|x86|x64|NATIVE>@<v1.1|v2.0|ANY|NATIVE>] [/dotcover-logs:<logs_folder>] [10:57:25]: Plugin NCover: [10:57:25]: /ncover:<path to NCover.Console.exe> [/ncover-arg:<arg>]* [/ncover-arguments:<arguments line>] [/ncover-platform:<MSIL|x86|x64|NATIVE>@<v1.1|v2.0|ANY|NATIVE>] [10:57:25]: Where: [10:57:25]: /ncover-arg: argument should be repeated for every argument of NCover [10:57:25]: /ncover-arguments: argument should be excaped to be passed to the program as one argument [10:57:25]: Plugin NUnit-*: [10:57:25]: No assemblies were found. [10:57:25]: No assemblies were found. [10:57:25]: [/category-include:categories] [/category-exclude:categories] [/addin:addins] [/runAssemblies:processPerAssembly] <assembly>[(;| )<assembly>[...]] [10:57:25]: Supported plugin names: [10:57:25]: NUnit-2.2.10 [10:57:25]: NUnit-2.2.9-VSTS [10:57:25]: NUnit-2.2.9-VSTS-9.0 [10:57:25]: NUnit-2.4.1 [10:57:25]: NUnit-2.4.6 [10:57:25]: NUnit-2.4.7 [10:57:25]: NUnit-2.4.8 [10:57:25]: NUnit-2.4.8-resharper [10:57:25]: NUnit-2.5.0 [10:57:25]: NUnit-2.5.10 [10:57:25]: NUnit-2.5.2 [10:57:25]: NUnit-2.5.3 [10:57:25]: NUnit-2.5.4 [10:57:25]: NUnit-2.5.5 [10:57:25]: NUnit-2.5.6 [10:57:25]: NUnit-2.5.7 [10:57:25]: NUnit-2.5.7-resharper [10:57:25]: NUnit-2.5.8 [10:57:25]: NUnit-2.5.9 [10:57:25]: 2012-08-01 10:57:25,712 [9052] ERROR JetBrains.BuildServer.NAntLoggers.NUnitLauncher2 - Failed to parse arguments [10:57:25]: Process exited with code -1 

The build agent that runs these tests is on one machine (say, Machine-a), and the tests are on another machine (Machine-b). So I use the build agent on Machine-a to run the tests on Machine-b and throw the above error. I am not sure if this is true since the build agent is on a different machine.

I also have another build agent installed on Machine-c. So I tried to run the nunits tests that are on Machine-c with the build agent of the same computer (Machine-c) and get the following error.

 [14:33:02]: 2012-08-01 14:33:02,755 [3116] ERROR JetBrains.BuildServer.NAntLoggers.NUnitLauncher2 - Failed to parse arguments [14:33:02]: No assemblies were found. [14:33:02]: Process exited with code -1 

So, I'm confused if I am missing some nunit assemblies (which can be easily copied from another machine) to Machine-b, Machine-c, or some other problem occurs.

I also wonder if the tests are Teamcity, build agent and nunit - all 3 elements must be on the same machine to successfully run the tests (as it is now for us now).

Can someone please help me with this.

Thanks.

+8
testing nunit teamcity
source share
1 answer

Actually, the reason I could not run the tests is because I tried to use the network resource name to access the test assembly. The newest Teamcity NUnit developer expects a path relative to his checkout / build directory or an absolute path, but not a path with a network name.

+4
source share

All Articles