Missed Team ’24? Catch up on announcements here.

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

Unable to Add NUnit Runner Capability To Elastic Image

Imran Akram
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2014

I am new to Bamboo and I would like to run my NUnit tests usng the Bamboo NUnit task. I currently have three tasks in the project plan which consist of the source code checkout first, then followed by an MSBuild Task. When the plan is executed with just these two tasks the build will complete successfully albeit a testless one. When adding a third task (NUnit Runner) and running the plan I get a failure with the following error:

09-Apr-2014 10:46:27 Error occurred while running Task 'All Tests(4)' of type com.atlassian.bamboo.plugin.dotnet:nunitRunner.
09-Apr-2014 10:46:27 java.lang.IllegalArgumentException: NUnit Console Executable not found
09-Apr-2014 10:46:27 at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
09-Apr-2014 10:46:27 at com.atlassian.bamboo.plugin.dotnet.tests.nunit.NUnitRunnerTaskType.execute(NUnitRunnerTaskType.java:91)
09-Apr-2014 10:46:27 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:216)
09-Apr-2014 10:46:27 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98)
09-Apr-2014 10:46:27 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
09-Apr-2014 10:46:27 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:181)
09-Apr-2014 10:46:27 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:101)
09-Apr-2014 10:46:27 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108)
09-Apr-2014 10:46:27 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
09-Apr-2014 10:46:27 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
09-Apr-2014 10:46:27 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
09-Apr-2014 10:46:27 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
09-Apr-2014 10:46:27 at java.lang.Thread.run(Thread.java:662)

I have also added the capability to the respective elastic image within configuration > capabilities. However i am using a local path to specify the nunit executable which I believe could be incorrect. Could you please advice on how I could configure the NUnit Runner capability and setup the NUnit Task so I am able to run my NUnit tests successfully.


Please see attached image.

2 answers

1 accepted

0 votes
Answer accepted
Imran Akram
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 21, 2014

Closing Question

0 votes
Stephen Ogden
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 20, 2014

has this been resolved? I'd like to understand the NUnit Runner executable path as well

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events