Gallio:无法运行测试,因为找不到 MSTest 可执行文件
我在一个没有 Visual Studio 的盒子上安装了最新的 Gallio 版本 3.2.603,它将成为我们的 CI 服务器。 NAnt 脚本成功构建了 .Net 4.0 项目,但当它尝试运行 MSTest 测试时,会出现以下错误。
[gallio] Gallio NAnt Task - Version 3.2 build 601
[gallio] [error] Assembly XXXXXXXXXXXXXX
[gallio] 无法运行测试,因为未找到 MSTest 可执行文件
我是否错误地期望 Gallio 能够在没有 MSTest 可执行文件的情况下运行 MSTest 测试,或者安装了其他 Visual Studio 组件吗?
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 Task - Version 3.2 build 601
[gallio] [error] Assembly XXXXXXXXXXXXXX
[gallio] Cannot run tests because the MSTest executable was not found
Am I wrong to expect that Gallio is able to run MSTest tests without the MSTest executable or any other Visual Studio components installed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好的,我从 Gallio 支持人员那里得到了答复,实际上它需要 MSTest.exe 出现在盒子上。我将测试 Aseem 建议的包是否提供了足够的东西来运行测试。
更新:我从包中安装了 Microsoft Visual Studio Test Agent 2010。我必须将字符串值 InstallDir 添加到 [HKLM\SOFTWARE\Microsoft\VisualStudio\10.0] 并将该值设置为类似的值
“C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE”
现在我的 CI 盒子完美运行这些测试。
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.
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”
Now my CI box runs those tests perfectly.
我对 Gallio 一无所知,只是想与 Visual Studio 2010 分享这一点,您实际上并不需要 Visual Studio 来运行 MSTest 测试。您可以简单地安装测试代理(一个非常轻量级的 sku),它还会安装 MSTest。可以从此处安装此测试代理安装程序。
I dont know anything about Gallio, but just wanted to share that with visual studio 2010, you dont really need visual studio to run MSTest tests. You can simply install test agent (a very light-weight sku) which additionally installs MSTest. This test agent installer can be installed from here.
确认这对我有用。使用 VS2010 在盒子上运行 Sonar。在我添加此注册表值之前,Sonar 无法找到 MSTest。
Confirmed this worked for me. Running Sonar on a box with VS2010. Sonar could not find MSTest until I added this registry value.