问题描述
我在没有Visual Studio的盒子上安装了最新的Gallio版本3.2.603,它将成为我们的CI服务器. NAnt脚本成功构建了.Net 4.0项目,但是当它尝试运行MSTest测试时,会发生以下错误.
I installed the newest Gallio release 3.2.603 on a box without Visual Studio that will be our CI server. The NAnt script successfully built the .Net 4.0 projects but when it tries to run MSTest tests the following error occurs.
[gallio] Gallio NAnt任务-版本3.2:内部版本601
[gallio] Gallio NAnt Task - Version 3.2 build 601
[gallio] [错误]大会XXXXXXXXXXXXXX
[gallio] [error] Assembly XXXXXXXXXXXXXX
[gallio]因为未找到MSTest可执行文件而无法运行测试
[gallio] Cannot run tests because the MSTest executable was not found
我是否期望Gallio在没有安装MSTest可执行文件或任何其他Visual Studio组件的情况下能够运行MSTest测试?
Am I wrong to expect that Gallio is able to run MSTest tests without the MSTest executable or any other Visual Studio components installed?
推荐答案
好吧,我从Gallio支持人员那里得到了一个答案,它实际上要求MSTest.exe出现在包装盒上.我将测试Aseem建议的软件包是否提供了足够的东西来运行测试.
Ok, I got an answer from Gallio support that it actually requires MSTest.exe to be present on the box. I'll test the package that Aseem suggested whether it provides enough stuff to run the tests.
更新:我从软件包中安装了Microsoft Visual Studio Test Agent 2010.我必须将字符串值InstallDir添加到[HKLM \ SOFTWARE \ Microsoft \ VisualStudio \ 10.0]并将该值设置为类似"C:\ Program Files \ Microsoft Visual Studio 10.0 \ Common7 \ IDE"
Update: I installed Microsoft Visual Studio Test Agent 2010 from the package. I had to add the string value InstallDir to [HKLM\SOFTWARE\Microsoft\VisualStudio\10.0] and set the value to something like"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE"
现在,我的CI框可以完美地运行这些测试.
Now my CI box runs those tests perfectly.
这篇关于Gallio:无法运行测试,因为未找到MSTest可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!