让测试运动员与Nuget的Gallio合作

时间:2012-10-01 10:47:01

标签: nuget mbunit gallio testdriven.net

我想我在这里遗漏了一些东西。我安装了Tesdriven然后Gallio(顶部的第三个链接 - Gallio 3.5 x64安装程序)

然后我安装了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包运行测试呢?

1 个答案:

答案 0 :(得分:9)

目前nuget gallery只有3.3.1版本的mbunit包,你安装了Gallio v3.4。这是非常恼人的限制gallio和mbunit。要使用nuget包,您必须将计算机上的Gallio降级为v3.3.1。更好的解决方案是将邮件发送到gallio / mbunit团队并要求上传最新版本的nuget包或自行制作。