加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-13 20:07:34 所属栏目:Windows 来源:网络整理
导读:通过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 sy
通过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*binDebug*Test*.dll

事情很好

UPDATE

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

您可以使用此模式

***.dll

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

**obj***.dll

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读