Teamcity不是一些NUnit测试项目的DLL

通过Teamcity 5运行我的Moq测试时,我会收到此错误

Test(s) Failed.
System.IO.FileNotFoundException :
Could not load file or assembly ‘Moq,
Version=3.1.416.3,Culture=neutral,
PublicKeyToken=69f491c39445e920’ or
one of its dependencies. The system
cannot find the file specified. at
MyCode.Tests.someHandlerTests.Setup()

测试在我本地运行正常;他们只是在构建服务器上失败.

我确定装配在Bin(现在看看他们现在在RDP只是双重确定).

所以问题是在测试DLL搜索路径下的nunit设置

它是:

..\Tests\**\*Test*.dll

但现在是:

..\Tests\*\bin\Debug\*Test*.dll

事情很好

UPDATE

http://confluence.jetbrains.com/display/TCD8/NUnit

您可以使用此模式

**\*.dll

只要您在“不要运行测试”字段中添加此模式

**\obj\**\*.dll

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...