簡體   English   中英

NUnit 3.0 是否有 nunit-console-runner.dll?

[英]Is there a nunit-console-runner.dll for 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 測試?

Nunit 3 Console Runner 可以作為 nuget 包的參考安裝 - https://www.nuget.org/packages/NUnit.ConsoleRunner/

nunit3-console.exe 文件將存放在 Project Directory >> Package >> nunit-console runner 文件夾下

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM