如何在 TeamCity 9.x 中安装 nUnit 3 nunit3-console.exe [英] How to install nUnit 3 nunit3-console.exe in TeamCity 9.x

查看:32
本文介绍了如何在 TeamCity 9.x 中安装 nUnit 3 nunit3-console.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TeamCity 9.1.x 现在支持 NUnit 3.0,但是您必须安装运行程序并在步骤中指定 nunit3.console.exe 的路径.我的问题是在哪里复制 nunit3-console.exe?我必须把这个放在所有的代理上吗?我是否将它放在我的 TeamCity 主服务器上的目录中,并且它会被代理共享或拉取?似乎没有关于在哪里复制这些文件以便所有代理都可以使用它们的良好文档.

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 the nunit3-console.exe? Do I have to put this on all the agents? Do I put it in a directory on my main TeamCity server and it will get shared or pulled by the agents? There doesn't seem to be good documentation on where to copy these files so that all the agents can use them.

推荐答案

您应该在要运行 NUnit 测试的每个代理上都有 NUnit 控制台.

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

最好的选择是:

  1. 添加对 NuGet 包的引用 (https://www.nuget.org/packages/NUnit.跑步者/).

要恢复包,您可以使用NuGet 安装程序"构建步骤,请参阅以下博客文章:https://blog.jetbrains.com/teamcity/2013/08/nuget-package-restore-with-teamcity/

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/

之后,您只需从恢复的 NuGet 包中设置类似packages\NUnit.Console.3.0.0\tools\nunit3-console.exe"的路径即可.

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

这篇关于如何在 TeamCity 9.x 中安装 nUnit 3 nunit3-console.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆