开发者

NUnit in Finalbuilder: How can I provide a path to nunit-console without the finalbuilder option

开发者 https://www.devze.com 2023-01-14 03:13 出处:网络
My shop has a precedent of checking in 3rd party tools to source control and using relative paths in projects/builds to find everything. Also, as NUnit releases new versions there have been several ve

My shop has a precedent of checking in 3rd party tools to source control and using relative paths in projects/builds to find everything. Also, as NUnit releases new versions there have been several versions of NUnit admitted to this 3rd party libraries section in source control, so that changing older tests wasn't necessary to start using newer versions.

However, Finalbuilder defines the path to nunit-console.exe in the Tools | Options menus, and not only does this path not use environment variables, but there's only one of it.

Is there some way I'm missing to supply a path to the 开发者_运维问答NUnit action?


You can do this in the BeforeAction script event (javaScript) :

var nunitOptions = GetOptionsObject("NUnit")
nunitOptions.NUnitLocation = FBVariables.MYUNITPATH

where MYUNITPATH is a FinalBuilder Project variable that points to nunit. Note that you should avoid relative paths for this since they are not fully supported due to the multithreaded nature of FB.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号