NUnit无法在TFS构建中加载 [英] NUnit failed to load in TFS build

查看:65
本文介绍了NUnit无法在TFS构建中加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个部分成功构建"的问题,错误为"NUnit无法加载e:\ Builds \ 184 \ CSTax \ 706USServices_Test \ bin \ Calc.Tests.dll",但是在此进行的所有单元测试项目运行并通过(全部绿色).

I’m having a "build partially succeeded" issue with this error "NUnit failed to load e:\Builds\184\CSTax\706USServices_Test\bin\Calc.Tests.dll", but all of the unit test in this project ran and passed (all green).

构建环境

1)使用NUnit 2.6.4和NUnit测试适配器2.0.0

1) Using NUnit 2.6.4 and NUnit Test Adapter 2.0.0

2)TFS 2013 –从2012年升级

2) TFS 2013 – upgraded from 2012

3)服务器上已安装Visual Studio 2012和2013

3) Visual studio 2012 and 2013 have been installed on the server

4)我确实使用2013 Visual Studio中的扩展和更新安装了NUnit测试适配器

4) I did install the NUnit Test Adapter, using the Extensions and Updates in 2013 Visual Studio

5)使用TFS 2012中的构建过程模板,即使我切换到2013默认构建过程模板,我也会遇到相同的错误

5) Using build process templates from TFS 2012, even if I switch to the 2013 default build process templates I get the same error

6)我尝试更改项目以在本地复制nunit引用(包括测试适配器),它们确实将其复制到bin文件夹中,但仍然失败

6) I tried changing the project to copy the nunit references locally (including the test adapter), they did make it to the bin folder, but still fails

7)我使用进程监视器查看是否可以找到故障,一切看起来都很好,dll已从程序包文件夹复制到bin文件夹并加载.

7) I used process monitor to see if I could find the failure, everything looked good, the dlls were copied from the packages folder to the bin folder and loaded.

我确定它必须在我们的构建环境中,但是我不知道从哪里看,我需要我的构建才能变得绿色.有什么想法吗?

I’m sure it has to be something in our build environment, but I do not know where to look, I need my builds to go green. Any ideas?

推荐答案

问题是NUnit 3.0测试适配器中的错误,我从构建服务器上删除了E2E项目,所有构建都变为绿色. NUnit正在调查此错误.

The issue is a bug in the NUnit 3.0 test adapter, I removed our E2E project off of the build server and all my builds went green. NUnit is looking into this bug.

这篇关于NUnit无法在TFS构建中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆