I have a project where I want to pass NUnit options in Bamboo's NUnitRunner task. My NUnit command line is as follows:
nunit-console.exe --params="Browser=chrome;ExecuteSomething=Yes" Solution.compiled.dll --where "cat==ParallelCategory"
How can I achieve similar thing in Bamboo?
Hi Abhash,
Thank you for reaching out to the Atlassian Community!
Those command line options are from NUnit version 3.x, for which we don't yet have support. There is an open Feature Request for supporting NUnit 3.x arguments and parameters here:
[\[BAM\-18833\] Support New NUnit Runner Command line parameters|https://jira.atlassian.com/browse/BAM-18833]
As a workaround, please add the command into a Script task, using an Inline script and your command line as you sent before; ie:
nunit-console.exe --params="Browser=chrome;ExecuteSomething=Yes" Solution.compiled.dll --where "cat==ParallelCategory"
(Edit) Please note that we'll need to specify NUnit 2 format for the test results file so that Bamboo is able to parse it. To do this, you can add the following:
--result=TestResults.xml;format=nunit2
Please don't hesitate to reach out if you have any other questions!
Thanks,
Elias | Bamboo Support
Atlassian
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.