简体   繁体   English

如何参数化TeamCity NUnit Runner平台?

[英]How can I parameterize TeamCity NUnit Runner Platform?

We are currently using TeamCity 9 and have a number of components that used to be x32 but are now x64 . 我们目前正在使用TeamCity 9并且具有许多以前是x32但现在是x64

We have also defined a Release template which has an NUnit build step using the TeamCity built-in test runner. 我们还使用TeamCity内置测试运行程序定义了一个Release模板,该模板具有NUnit构建步骤。

Due to the fact that some of the branches are in x32 every time we want to release a branch we would need to: 由于每次我们要释放分支时某些分支都在x32我们需要:

  • first copy the build-step; 首先复制构建步骤;
  • disable the inherited one; 禁用继承的;
  • explicitly change the Platform of the coppied NUnit runner to x32 . 明确地将已复制的NUnitPlatform更改为x32

Is there a way we could parameterize this value without having to resort to running nunit-console.exe explicitly or the manual steps mentioned above? 有没有一种方法可以参数化此值,而不必求助于显式运行nunit-console.exe或上述手动步骤?

Any help is very much appreciated. 很感谢任何形式的帮助。

No there is not. 不,那里没有。

I've raised a ticket for the same feature in the MSBuild runner but JetBrains haven't implemented it. 我提出了一个为同一功能在MSBuild的亚军,但JetBrains公司还没有实现它。 You may want to comment on the ticket, asking JetBrains to do the same for the NUnit runner. 您可能要对票进行评论,要求JetBrains对NUnit运行程序执行相同的操作。

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

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