Unable to Add NUnit Runner Capability To Elastic Image
Asked by Imran Akram:

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.

<br />

Please see attached image.![](../../upfiles/NUnit_Runner.jpg)


Answers:
author: Imran Akram
body: Closing Question


author: Stephen Ogden
body: has this been resolved? I'd like to understand the NUnit Runner executable path as well


Tags: capability

nunit