Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

NUnitRunner : How to use pass NUnit Options in the NUnitRunner task?

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?

1 answer

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

638 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you