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

Loc*_*rde 6 mbunit testdriven.net gallio nuget

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

然后我从Nuget安装了mbunit dll,因为我不想在我的硬盘中加入一个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/
Run Code Online (Sandbox Code Playgroud)

那么,有没有办法让testrunner用nuget包运行测试呢?

Pav*_*shy 9

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