使用加利奥从VS2012运行vstest [英] Using Gallio to run vstest from VS2012

查看:239
本文介绍了使用加利奥从VS2012运行vstest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很惊讶,我一直没能在网上找到这些信息。我们使用声纳来运行加利奥收集测试覆盖率信息。当加利奥运行它报告以下错误。

I am surprised that I have not been able to find this information online. We use Sonar to run Gallio to collect test coverage information. When Gallio runs it reports the following error.

Cannot run tests because the MSTest executable was not found

现在,我们使用Visual Studio 2012测试运行不再是MSTest的,但反而vstest.console.exe。加利奥可以使用Visual Studio 2012测试运行,如果是这样,那我怎么设置?

Now we use Visual Studio 2012. The test runner is no longer mstest, but is instead vstest.console.exe. Can Gallio use the Visual Studio 2012 test runner, and if so, then how do I set that up?

推荐答案

加利奥唯一用途的 MSTest.exe 的到,所以你至少需要有VS2010测试代理安装执行测试运行测试:的 https://code.google.com/p/mb-unit/issues/detail?id=899

Gallio only uses MSTest.exe to run tests so you need to at least have the VS2010 test agents installed execute tests: https://code.google.com/p/mb-unit/issues/detail?id=899

加利奥不必使用Visual Studio测试运行在这个时候,这意味着你不能使用之类的东西的正版正货的在单元测试中它的的能力MSTest.exe 不知道该怎么仪器。虽然许多VS2012 / 2013测试将以 MSTest.exe 的成功运行,新功能将失败,除非有vstest.console.exe运行需要被实现为加利奥扩展才能正常工作:的 https://code.google.com/p/mb-unit/issues/细节?ID = 923

Gallio does not have the ability to use the Visual Studio test runner at this time which means you cannot use things like Fakes in your unit tests which MSTest.exe does not know how to instrument. Although many VS2012/2013 tests will run successfully with MSTest.exe, new features will fail unless run with vstest.console.exe which needs to be implemented as an extension in Gallio to work correctly: https://code.google.com/p/mb-unit/issues/detail?id=923

如果你只需要加利奥运行写在VS2012单元测试,安装测试代理进行的 MSTest.exe 可用来加利奥运行测试。如果你想加利奥使用的 vstest.console.exe 的,并利用新的测试功能, MSTest.exe 的不能够运行,你将需要等待这个扩展要添加到加利奥(或自己有助于它)。

If you just need Gallio to run your unit tests written in VS2012, install the test agents to make MSTest.exe available to Gallio to run the tests. If you want Gallio to use vstest.console.exe and make use of new test features that MSTest.exe are not capable of running, you will need to wait for this extension to be added to Gallio (or contribute it yourself).

这篇关于使用加利奥从VS2012运行vstest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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