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

Bamboo nunit-console not running [SetUp] section

Hello,

Platform: macOS 10.12.2
Product: Bamboo 5.14.3.1 build 51416

I am having huge trouble trying to get Bamboo to recognise nunit-console.exe run via mono as a recognisable executable for NUnit Runner so have split the task into a script and NUnit parser instead.

In the script, I am simply running:
MONO_IOMAP=all NUNIT-CONSOLE path/to/csproj

When I call the exact same line from a terminal, my test suite executes and passes but everytime it is run through Bamboo, I get a System.NullReferenceException and the line numbers provided suggest the [Setup] section is not being called.
Indeed, if I remove the [Setup] attribute from my test, I get the same error in terminal then.

Output from both terminal and bamboo show it is running the same version of nunit-console (of course) so I do not know why I am getting different outcomes.

Any ideas?

1 answer

0 votes

Just guessing.

Try to pass MONO_IOMAP=all as Environment variable in separate field of Script task

That, unfortunately, does not change anything.

I do not understand why the result is different - it's looking at the same .csproj file and running the same nunit-console executable through the same version of mono. What is causing the test to run differently when the script task is run by Bamboo?
If anyone can shed any light on what is different in general about running scripts through Bamboo, I might be able to put 2 and 2 together...? 

Suggest an answer

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

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

695 views 2 7
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