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

前端之家收集整理的这篇文章主要介绍了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

原文链接:https://www.f2er.com/windows/371009.html

猜你在找的Windows相关文章