ERROR JetBrains.BuildServer.NAntLoggers.NUnitLauncher2 - Compatible parser was not found
I'm trying to get NUnit tests to run with TeamCity. I've set the "run tests from" path to:
src\ProjectName\bin\Release\ProjectName.dll
but I get the following back in the logs:
[11:05:37]: Step 2/2: Tests (NUnit)
[11:05:37]: [Step 2/2] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[11:05:37]: [Step 2/2] in directory: C:\TeamCity\buildAgent\work\c89b2d7f0e6fa367
[11:05:38]: [Step 2/2] 2011-10-19 11:05:38,658 [1620] ERROR JetBrains.BuildServer.NAntLoggers.NUnitLauncher2 - Compatible parser was not found
[11:05:38]: [Step 2/2] JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[11:05:38]: [Step 2/2] Arguments will be recieved implicitly
[11:05:38]: [Step 2/2] JetBrains.BuildServer.NUnitLauncher.exe @@ <xml-arguments-file>
[11:05:38]: [Step 2/2] JetBrains.BuildServer.NUnitLauncher.exe {v1.1|v2.0|mono-1.0|mono-2.0|ANY} {MSIL|x86|x64} Plugin{|Plugin...}
[11:05:38]: [Step 2/2] Plugin NCover:
[11:05:38]: [Step 2/2] /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>]
[11:05:38]: [Step 2/2] Where:
[11:05:38]: [Step 2/2] /ncover-arg: argument should be repeated for every argument of NCover
[11:05:38]: [Step 2/2] /ncover-arguments: argument should be excaped to be passed to the program as one argument
[11:05:38]: [Step 2/2] Plugin NUnit-*:
[11:05:38]: [Step 2/2] [/category-include:categories] [/category-exclude:categories] [/addin:addins] [/runAssemblies:processPerAssembly] <assembly>[(;| )<assembly>[...]]
[11:05:38]: [Step 2/2] Supported plugin names:
[11:05:38]: [Step 2/2] NUnit-2.2.10
[11:05:38]: [Step 2/2] NUnit-2.2.9-VSTS
[11:05:38]: [Step 2/2] NUnit-2.2.9-VSTS-9.0
[11:05:38]: [Step 2/2] NUnit-2.4.1
[11:05:38]: [Step 2/2] NUnit-2.4.6
[11:05:38]: [Step 2/2] NUnit-2.4.7
[11:05:38]: [Step 2/2] NUnit-2.4.8
[11:05:38]: [Step 2/2] NUnit-2.4.8-resharper
[11:05:38]: [Step 2/2] NUnit-2.5.0
[11:05:38]: [Step 2/2] NUnit-2.5.10
[11:05:38]: [Step 2/2] NUnit-2.5.2
[11:05:38]: [Step 2/2] NUnit-2.5.3
[11:05:38]: [Step 2/2] NUnit-2.5.4
[11:05:38]: [Step 2/2] NUnit-2.5.5
[11:05:38]: [Step 2/2] NUnit-2.5.6
[11:05:38]: [Step 2/2] NUnit-2.5.7
[11:05:38]: [Step 2/2] NUnit-2.5.7-resharper
[11:05:38]: [Step 2/2] NUnit-2.5.8
[11:05:38]: [Step 2/2] NUnit-2.5.9
[11:05:38]: [Step 2/2] Plugin PartCover:
[11:05:38]: [Step 2/2] /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]
[11:05:38]: [Step 2/2] Where:
[11:05:38]: [Step 2/2] /partcover-arg: argument should be repeated for every argument of PartCover
[11:05:38]: [Step 2/2] /partcover-arguments: argument should be excaped to be passed to the program as one argument
[11:05:38]: [Step 2/2] Plugin mstest:
[11:05:38]: [Step 2/2] /mstestlocation:[ directory name ] /testcontainer:[ file name ] [/isolated] /runconfig:[ file name ]
[11:05:38]: [Step 2/2] Plugin dotCover:
[11:05:38]: [Step 2/2] /dotcover:<path to dotCover.exe> [/dotcover-platform:<MSIL|x86|x64|NATIVE>@<v1.1|v2.0|ANY|NATIVE>] [/dotcover-logs:<logs_folder>]
[11:05:38]: [Step 2/2] 2011-10-19 11:05:38,688 [1620] ERROR JetBrains.BuildServer.NAntLoggers.NUnitLauncher2 - Failed to parse arguments
[11:05:38]: [Step 2/2] No assemblies were found.
[11:05:38]: [Step 2/2] No assemblies were found.
[11:05:38]: [Step 2/2] Process exited with code -1
[11:05:38]: [Step 2/2] Step Tests (NUnit) failed
[11:05:37]: [Step 2/2] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[11:05:37]: [Step 2/2] in directory: C:\TeamCity\buildAgent\work\c89b2d7f0e6fa367
[11:05:38]: [Step 2/2] 2011-10-19 11:05:38,658 [1620] ERROR JetBrains.BuildServer.NAntLoggers.NUnitLauncher2 - Compatible parser was not found
[11:05:38]: [Step 2/2] JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[11:05:38]: [Step 2/2] Arguments will be recieved implicitly
[11:05:38]: [Step 2/2] JetBrains.BuildServer.NUnitLauncher.exe @@ <xml-arguments-file>
[11:05:38]: [Step 2/2] JetBrains.BuildServer.NUnitLauncher.exe {v1.1|v2.0|mono-1.0|mono-2.0|ANY} {MSIL|x86|x64} Plugin{|Plugin...}
[11:05:38]: [Step 2/2] Plugin NCover:
[11:05:38]: [Step 2/2] /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>]
[11:05:38]: [Step 2/2] Where:
[11:05:38]: [Step 2/2] /ncover-arg: argument should be repeated for every argument of NCover
[11:05:38]: [Step 2/2] /ncover-arguments: argument should be excaped to be passed to the program as one argument
[11:05:38]: [Step 2/2] Plugin NUnit-*:
[11:05:38]: [Step 2/2] [/category-include:categories] [/category-exclude:categories] [/addin:addins] [/runAssemblies:processPerAssembly] <assembly>[(;| )<assembly>[...]]
[11:05:38]: [Step 2/2] Supported plugin names:
[11:05:38]: [Step 2/2] NUnit-2.2.10
[11:05:38]: [Step 2/2] NUnit-2.2.9-VSTS
[11:05:38]: [Step 2/2] NUnit-2.2.9-VSTS-9.0
[11:05:38]: [Step 2/2] NUnit-2.4.1
[11:05:38]: [Step 2/2] NUnit-2.4.6
[11:05:38]: [Step 2/2] NUnit-2.4.7
[11:05:38]: [Step 2/2] NUnit-2.4.8
[11:05:38]: [Step 2/2] NUnit-2.4.8-resharper
[11:05:38]: [Step 2/2] NUnit-2.5.0
[11:05:38]: [Step 2/2] NUnit-2.5.10
[11:05:38]: [Step 2/2] NUnit-2.5.2
[11:05:38]: [Step 2/2] NUnit-2.5.3
[11:05:38]: [Step 2/2] NUnit-2.5.4
[11:05:38]: [Step 2/2] NUnit-2.5.5
[11:05:38]: [Step 2/2] NUnit-2.5.6
[11:05:38]: [Step 2/2] NUnit-2.5.7
[11:05:38]: [Step 2/2] NUnit-2.5.7-resharper
[11:05:38]: [Step 2/2] NUnit-2.5.8
[11:05:38]: [Step 2/2] NUnit-2.5.9
[11:05:38]: [Step 2/2] Plugin PartCover:
[11:05:38]: [Step 2/2] /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]
[11:05:38]: [Step 2/2] Where:
[11:05:38]: [Step 2/2] /partcover-arg: argument should be repeated for every argument of PartCover
[11:05:38]: [Step 2/2] /partcover-arguments: argument should be excaped to be passed to the program as one argument
[11:05:38]: [Step 2/2] Plugin mstest:
[11:05:38]: [Step 2/2] /mstestlocation:[ directory name ] /testcontainer:[ file name ] [/isolated] /runconfig:[ file name ]
[11:05:38]: [Step 2/2] Plugin dotCover:
[11:05:38]: [Step 2/2] /dotcover:<path to dotCover.exe> [/dotcover-platform:<MSIL|x86|x64|NATIVE>@<v1.1|v2.0|ANY|NATIVE>] [/dotcover-logs:<logs_folder>]
[11:05:38]: [Step 2/2] 2011-10-19 11:05:38,688 [1620] ERROR JetBrains.BuildServer.NAntLoggers.NUnitLauncher2 - Failed to parse arguments
[11:05:38]: [Step 2/2] No assemblies were found.
[11:05:38]: [Step 2/2] No assemblies were found.
[11:05:38]: [Step 2/2] Process exited with code -1
[11:05:38]: [Step 2/2] Step Tests (NUnit) failed
I've checked the working directory on the build server and the file definitely exists on that path? Why is this happening? Thanks!
Please sign in to leave a comment.
James
This error usually means the file is actually isn't there.
could you double-check it's \Release\ directory but not \Debug\, in \src\project\bin but not \bin\ - stuff like that.
I "fixed" it in the end by setting it to
src\*\bin\Release\*Test*.dll
The path was definitely correct, so I don't understand what's going on here.
great that it works now.
src\ProjectName\bin\Release\ProjectName.dll name does not contains "test" substring, maybe that's a reason.
But that's hard to me to explain without knowing exact file names.