NUnit 3.0有nunit-console-runner.dll吗?

时间:2016-04-05 15:16:19

标签: c# dll nunit-3.0

NUnit 2.6.4有一个nunit-console-runner.dll文件,我可以在我的C#应用​​程序中使用如下:

string[] my_args = { "/run=SmokeTests.ATest", "Tests.dll" };
NUnit.ConsoleRunner.Runner.Main(my_args);

但我在3.0中没有看到这个dll。有吗?如果没有,我如何使用相同的命令以编程方式运行NUnit测试?

1 个答案:

答案 0 :(得分:1)

Nunit 3 Console Runner可作为nuget包的参考安装 - https://www.nuget.org/packages/NUnit.ConsoleRunner/

nunit3-console.exe文件将存储在项目目录>>下套餐>> nunit-console runner文件夹

可在此处找到更多文档 - https://github.com/nunit/docs/wiki/Console-Runner