如何在没有 VS 的情况下在持续集成中使用 MsTest? [英] How to use MsTest in Continuous Integration without VS?
问题描述
我的问题很简单,我有一个运行 msbuild 和 mstest 的 CI 服务器.
My problem is quite simple, I have a CI server which runs msbuild and mstest.
问题是 Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
如果我们不在服务器对于 CI 服务器来说是相当愚蠢的......
The problem is that the Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
doesn't exist (and I thinks other files related to mstest...) if we don't install VS in the server which is pretty stupid for a CI server...
我该如何解决这个问题?
How can I fix this?
推荐答案
不幸的是,在 2005 年或 2008 年(2010年会有测试代理安装程序).更新:看到这篇文章来自史蒂夫·史密斯(Steve Smith)了解更多信息,其中说的几乎相同
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
这不仅仅是缺少程序集的问题 - 如果您想运行测试,运行程序不仅仅是一个单独的小 EXE 和一个 DLL.
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.
是的,难以置信!不用说,地球上很少有其他测试框架有这个限制,所以除非你有很多测试,否则你可以考虑迁移,原因很多地方都有,例如:使用MSTest的基本问题和不切实际...
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...
在 Rihan 的回复提示下,我收集了以下 在没有 Visual Studio 的情况下运行 mstest. - 它不完全受支持,但它有效"...
Prompted by Rihan's reply, I binged up the following Running mstest without Visual Studio. - It's not fully supported, but it 'works'...
编辑 2:在没有 Visual Studio 的情况下运行 MSTest - Gallio 救援 在受支持和非 hacky 方面看起来更有希望.请注意@Johannes Rudolph 对这篇文章的评论'
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'
编辑 3:在这个问题上添加了关于 2010 年状态的信息
EDIT 3: Added info re 2010 status on this question
注意:我在 2008 年有一个类似的问题,关于支持 MSTest 的/publish 参数需要什么:- 在 TeamBuild 服务器上运行 MSTEST.exe/publish,先决条件是什么?
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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!