通过Gallio使用Resharper单元测试运行程序进行MSTest
时间:2020-03-06 14:22:12 来源:igfitidea点击:
我试图让Resharper测试运行程序通过Gallio识别我的MSTest单元测试。
我已安装以下软件:
VSTS 2005 8.0.50727.762
收割者4.1
Gallio 3.0.0.285
我也在运行Windows XP x64.
单元测试选项仅显示NUnit可用。我以为我一定有一些版本错误。有人可以指出我正确的方向吗?我是否在吠错一棵树,并且这仅在VS2k8中有效?
更新:我将Gallio更新为GallioBundle-3.0.4.385-Setup,它现在显示在R#的单元测试选项中。但是在Ror Icarus中运行测试时出现以下错误:
Failures Cannot run tests because the MSTest executable was not found
谢谢
解决方案
我不确定这是否适用于问题,但是Gallio网站上的最新消息指出:
Gallio and ReSharper 4.0 A few people have asked when Gallio will support the final release of ReSharper 4.0. Unfortunately there were some last-minute breaking changes between ReSharper 4.0 Beta and the Final release. So the ReSharper plugin in Gallio Alpha 3 Update 2 will not work anymore. No matter... we plan to release another update of Gallio later this week.
更新:刚刚看到它适用于比我们使用的版本更早的版本,因此无需理会。
看来这是一个Gallio问题。它似乎仅支持VS2k8随附的MSTest版本。 vsmdi的XML格式在版本之间已更改。
ReSharper 4.5开箱即用地支持MSTest。
最近还发布了一个MSTest ReSharper插件:
http://www.sneal.net/blog/2009/01/24/MSTestReSharper4Plugin.aspx
我已经能够在Visual Studio 2005的ReSharper 4.1上成功使用它。
我们不需要重新共享就可以支持独立的mstest安装。我在这里的http://www.shunra.com/shunrablog/index.php/2009/04/running-mstest-without-visual-studio中解释了如何在没有VS的情况下进行独立的mstest安装