简体   繁体   English

与TeamCity集成NCrunch

[英]Integrating NCrunch w/ TeamCity

Does anybody know of any resources/guides on getting NCrunch integrated w/ TeamCity? 有没有人知道有关使用TeamCity集成NCrunch的任何资源/指南? My company just started investing in more automation research and development; 我的公司刚开始投资更多的自动化研究和开发; I am working on creating the automated testing suite using NCrunch while another developer is working on integrating automated build deployment/testing w/ TeamCity. 我正在使用NCrunch创建自动化测试套件,而另一个开发人员正致力于使用TeamCity集成自动构建部署/测试。

I am currently only running what tests I have locally but would like to look to setup an NCrunch grid and eventually integrate this w/ TeamCity so that tests fire periodically or upon a new build. 我目前只运行我在本地进行的测试,但希望设置一个NCrunch网格并最终集成这个w / TeamCity,以便测试定期或新建。

I would like to have an idea of how all of this may conceptually work together as automated builds/tasks are new to me. 我想知道所有这些在概念上如何协同工作,因为自动构建/任务对我来说是新的。 I've tried some google searching but am finding it hard to piece together, any help is appreciated. 我尝试了一些谷歌搜索,但我发现很难拼凑,任何帮助表示赞赏。

We have recently done this and it was fairly easy. 我们最近这样做了,这很容易。 basically it breaks down like this: 基本上它像这样崩溃:

  • install NCrunch console app on the TC agent machine 在TC代理计算机上安装NCrunch控制台应用程序
  • install NCrunch grid node software on each machine you want to act as a grid node (should not be the TC machines). 在要作为网格节点的每台机器上安装NCrunch网格节点软件(不应该是TC机器)。 Get this working with a dev machine first. 首先使用开发机器。
  • configure the console tool to use the grid node (by cutting and pasting the config element from a dev machine into the console tool config was the easiest way we found) 配置控制台工具以使用网格节点(通过将配置元素从开发机器剪切并粘贴到控制台工具配置中是我们发现的最简单方法)
  • Set your build to run the tests using NCrunch by creating a step in the TC build which invokes the NCrunch console tool from the command line 设置构建以使用NCrunch运行测试,方法是在TC构建中创建一个步骤,从命令行调用NCrunch控制台工具

The Ncrunch docs on the console tool (and contain a section on using TeamCity) were pretty good and Remco is a responsive guy if you ask questions on the forum. 控制台工具上的Ncrunch文档 (包含使用TeamCity的部分)非常好,如果你在论坛上提问,Remco是一个敏感的人。

One thing worth remembering is that you can override some of the settings in the console tool by passing them as arguments when you invoke it. 值得记住的一件事是,您可以通过在调用它时将它们作为参数传递来覆盖控制台工具中的某些设置。 We use this to restrict the number of test threads the console tool uses to run tests (as its running on the build agent) and force the grid to do more of the work. 我们使用它来限制控制台工具用于运行测试的测试线程数(因为它在构建代理上运行)并强制网格执行更多工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM