How to install nUnit 3 nunit3-console.exe in TeamCity 9.x

后端 未结 8 1073
没有蜡笔的小新
没有蜡笔的小新 2021-02-07 06:19

NUnit 3.0 is supported by TeamCity 9.1.x now however you have to install the runner and specify the path to the nunit3.console.exe in the step. My question is where do I copy t

8条回答
  •  天涯浪人
    2021-02-07 07:11

    You should have the NUnit console on the each agent where you would like to run NUnit tests.

    The best option is:

    1. Add reference to the NuGet package (https://www.nuget.org/packages/NUnit.Runners/).

    2. To restore package you could use "NuGet Installer" build step, see following blog post: https://blog.jetbrains.com/teamcity/2013/08/nuget-package-restore-with-teamcity/

    3. After that you just set path like "packages\NUnit.Console.3.0.0\tools\nunit3-console.exe" from the restored NuGet package.

提交回复
热议问题