我想我在这里错过了一些东西。我安装了 tesdriven 然后 gallio (来自顶部的第三个链接 - Gallio 3.5 x64安装程序)

然后我从nuget mbunit dlls from nuget ,因为我不想包含一个dll从我的硬盘驱动器,因为它使项目难以移植到其他机器。 但是,当我尝试运行样本测试时,TestRunner坚持我从我的硬盘引用DLL。实际错误消息是:

It looks like you're trying to execute a Gallio/MbUnit unit test.

For Gallio v3.0.6 build 787 / Gallio v3.1 build 313 or above (recommended):
Please ensure that the directory containing your 'MbUnit.dll' reference also contains Gallio's
test runner files ('MbUnit.dll.tdnet', 'TDNet\Gallio.TDNetRunner.dll', 'Gallio.dll' etc.)

For earlier versions:
You need to install Gallio (after TestDriven.Net) using its MSI installer.

You can find Gallio downloads and support here:
http://www.gallio.org/
.

所以,有没有办法让TestRunner用刚刚核心封装运行测试,请?

有帮助吗?

解决方案

目前Nuget Gallery只有3.3.1版本的MBUnit包,您安装了Gallio V3.4。这是Gloilio和Mbunit的烦恼。为了使用Nuget包,您必须将机器上的Gallio降级到 v3.3.1。更好的解决方案它是Gallio / MBUnit团队的邮件,并要求用最新的发布或通过自己制作纽特包。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top