[英]Can i Override the number of instances the tests are running in parallel using NUnit3 Console
[英]Running tests using NUnit3 Console
我正在嘗試使用NUnit Console Runner通過命令行運行測試: https : //github.com/nunit/docs/wiki/Console-Runner
我已經在我的NuGet中安裝了https://www.nuget.org/packages/NUnit.ConsoleRunner/ NUnit.ConsoleRunner
我已經在\\sanitized\\bin\\Debug\\netcoreapp2.1
打開了命令行位置。 我使用https://github.com/nunit/docs/wiki/Console-Command-Line中提到的命令NUNIT3-CONSOLE myTests.dll
運行測試
但是我得到了錯誤:
NUNIT3-CONSOLE:找不到命令
我應該使用什么命令?
注意:這是一個.netcore應用程序
NUnit控制台當前不適用於.net核心:
NUnit控制台是使用完整的.NET Framework編譯的,當前不支持.NET Core。 要從命令行運行.NET Core測試,您需要使用dotnet test。 有關如何執行此操作的信息,請參見https://github.com/nunit/docs/wiki/.NET-Core-and-.NET-Standard
我們正在考慮創建一個基於.NET Core的控制台運行程序,但它仍處於計划階段。
資料來源: https : //github.com/nunit/nunit-console/issues/487
只需按照nunit Wiki中所述使用dotnet test
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.