Teamcity:NUnit版本字符串部分太短或太长

时间:2017-10-06 07:33:23

标签: nunit teamcity

我正在尝试使用Teamcity构建服务器构建运行单元测试。我得到了我的项目构建,并且还安装了NUnit。但是当我尝试运行单元测试时,我得到以下错误。

Starting: D:\Ntapps\TeamCity\BuildAgent2\work\5abc171d155702d0\packages\NUnit.ConsoleRunner.3.6.0\tools\nunit3-console.exe D:\Ntapps\TeamCity\BuildAgent2\temp\buildTmp\dppSJMLyACKKGB7l1dAWbvFo9bLR6TcR.nunit --result=D:\Ntapps\TeamCity\BuildAgent2\temp\buildTmp\dppSJMLyACKKGB7l1dAWbvFo9bLR6TcR.nunit.xml --noheader
in directory: D:\Ntapps\TeamCity\BuildAgent2\work\5abc171d155702d0\AMDV\AMDV.App.IntegrationTests\bin\Debug
Runtime Environment
OS Version: Microsoft Windows NT 6.3.9600.0
CLR Version: 4.0.30319.42000

Test Files
D:\Ntapps\TeamCity\BuildAgent2\temp\buildTmp\dppSJMLyACKKGB7l1dAWbvFo9bLR6TcR.nunit

System.ArgumentException: Version string portion was too short or too long.
    at System.Version.VersionResult.SetFailure(ParseFailureKind failure, String argument)
    at System.Version.TryParseVersion(String version, VersionResult& result)
    at System.Version.Parse(String input)
    at System.Version..ctor(String version)
    at NUnit.Engine.Services.RuntimeFrameworkService.ApplyImageData(TestPackage package)
    at NUnit.Engine.Services.RuntimeFrameworkService.ApplyImageData(TestPackage package)
    at NUnit.Engine.Services.RuntimeFrameworkService.ApplyImageData(TestPackage package)
    at NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework(TestPackage package)
    at NUnit.Engine.Runners.MasterTestRunner.InitializePackage()
    at NUnit.Engine.TestEngine.GetRunner(TestPackage package)
    at NUnit.ConsoleRunner.ConsoleRunner.RunTests(TestPackage package, TestFilter filter)
    at NUnit.ConsoleRunner.Program.Main(String[] args)
Process exited with code -100
Publishing artifacts
Process exited with code -100
Step NUnit failed

我尝试使用谷歌搜索但这没有帮助,我不知道在哪里看。

I followed this tutorial to setup.

1 个答案:

答案 0 :(得分:0)

我发现了问题。我没有在我的测试中使用NUnit而是使用mstest。一个durp在我身边:))