未执行NUnit测试

未执行NUnit测试,nunit,teamcity,teamcity-7.0,Nunit,Teamcity,Teamcity 7.0,我正在尝试配置TeamCity来运行我们的测试 我创建了NUnit构建步骤,并选择了以下参数: 跑步者类型:NUnit 步骤名称:测试 执行步骤:仅当前面的所有步骤都成功时执行 NUnit跑步者:NUnit 2.6.1 .NET运行时:x64,v4.0 从以下位置运行测试:'tests**\bin\Debug\tests.*.dll' 其余的都是空白 这是生成日志中的输出 [14:03:31]Step 2/2: Tests (NUnit) (14s) [14:03:31][Step 2/2] S

我正在尝试配置TeamCity来运行我们的测试

我创建了NUnit构建步骤,并选择了以下参数:

跑步者类型:NUnit 步骤名称:测试 执行步骤:仅当前面的所有步骤都成功时执行 NUnit跑步者:NUnit 2.6.1 .NET运行时:x64,v4.0 从以下位置运行测试:'tests**\bin\Debug\tests.*.dll'

其余的都是空白

这是生成日志中的输出

[14:03:31]Step 2/2: Tests (NUnit) (14s)
[14:03:31][Step 2/2] Starting: C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[14:03:31][Step 2/2] in directory: C:\BuildAgent\work\743f6358429d804a
[14:03:39][Step 2/2] Start TeamCity NUnit Test Runner
[14:03:39][Step 2/2] Running NUnit-2.6.1 tests under .NET Framework v4.0 x64
[14:03:40][Step 2/2] Tests.Application.XmlImport.dll
[14:03:44][Step 2/2] Start TeamCity NUnit Test Runner
[14:03:44][Step 2/2] Running NUnit-2.6.1 tests under .NET Framework v4.0 x64
[14:03:45][Step 2/2] Tests.Infrastructure.Framework.dll
[14:03:45][Step 2/2] Process exited with code 0
为了确保测试没有运行,每个程序集都有一个Assert.Fail()测试

仅供参考:该项目使用.NET 4.5,NUnit程序集为2.6.2


谢谢。

最后,我发现TeamCity没有重建测试,程序集仍在使用MSTest属性,因此NUnit找不到它们。

从NUnit-console.exe调用测试时,测试是否运行?