问题描述
我的问题很简单,我有一个CI服务器运行msbuild和mstest。
问题是,Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll不存在(我认为其他文件相关的mstest ...)如果我们不在服务器安装VS是一个CI服务器很愚蠢的...
任何人都有解决这个问题的方法?
不幸的是,没有支持或简单的方法,在2005或2008年的构建代理机器上()。更新:
这不只是一个问题的程序集丢失 - 如果你想运行测试,赛跑者不只是一个单独的小EXE和DLL。
是的,很难相信!不用说,这个星球上的其他测试框架很少有这个限制,所以除非你有很多测试,你可以考虑移动,因为在许多地方涵盖的各种原因,例如: ...
编辑:由Rihan的回复提示,我加入了以下 - 它不完全支持,但它'工作'...
EDIT 2:看起来更有前途的支持和非黑客。 NB
$ b
编辑3:在此问题上添加了2010年信息状态
注意:我有一个类似的问题,2008年关于支持MSTest的/ publish参数需要什么: -
I my problem is quite simple, i have a CI server wich run msbuild and mstest.
The problem is that the Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll doesn't exist( and i thinks other file related to mstest...) if we don't install VS in the server wich is pretty stupid for a CI server...
Anybody have a solution about this problem ?
Unfortunately, there is no supported or easy way around having to install VS on the build agent machine in 2005 or 2008 (There will be a test agent installer in 2010). UPDATE: See this post from Steve Smith for more info which says pretty much the same thing
It's not just a matter of the assemblies being missing - if you want to run the tests, the runner is not just a separate little EXE and a DLL.
Yes, hard to believe! Needless to say, very few other test frameworks on the planet have this restriction, so unless you have a lot of tests, you could consider moving, for a variety of reasons which are covered in many places, example: The fundamental problems and impracticality of using MSTest...
EDIT: Prompted by Rihan's reply, I binged up the following Running mstest without Visual Studio. - It's not fully supported, but it 'works'...
EDIT 2: Running MSTest without Visual Studio - Gallio to the rescue looks a lot more promising in terms of being supported and non-hacky. NB see @Johannes Rudolph's comment on this post tho'
EDIT 3: Added info re 2010 status on this question
NOTE: I have a similar question for 2008 regarding what's required to support the /publish parameter of MSTest:- Running MSTEST.exe /publish on a TeamBuild server, what are the prerequisites?
这篇关于如何在没有VS的连续集成中使用MsTest?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!