我遇到問題,使用Nunit生成運行器從teamcity運行nunit測試。無法從teamcity運行nunit測試
到現在爲止,這些測試是從一臺機器,其中的TeamCity和生成代理是hosted.And運行測試,這臺機器上運行的預期。但是,我們正在從這個機器的測試到另一臺機器,當我嘗試從這個其他機器我碰到下面的錯誤運行測試
[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
生成代理運行這些測試是一臺機器上(比如機-a)並且測試在不同的機器上(Machine-b)。因此,我使用Machine-a上的構建代理在Machine-b上運行測試並拋出上述錯誤。我不確定這是否有效,因爲構建代理在不同的機器上。
我也有上機-C安裝在另一臺生成代理。所以我試着用同一臺機器的(Machine-c)構建代理運行Machine-c上的nunits測試,並得到以下錯誤。
[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
因此,我很困惑,如果我缺少機-B,機-C一些NUnit的組件(這可以從另一機器可以容易地複製)或有一些其它的問題。
我也想知道,如果TeamCity的,建立代理和NUnit測試,所有3項應該是同一臺機器上成功運行測試(因爲它是目前我們現在)上。
可能有人請幫助我。
謝謝。
你看這還有一個原因是,如果你已經有了CLR集的版本不對您NUnit的亞軍(例如的2.0,而不是4.0) – 2013-08-02 18:21:54