The elastic images provided by Atlassian don’t provide NUnit support out of the box. In my previous post I outlined how to set up your own AMI and use this to set up your own elastic image configuration in Bamboo. It’s important to know that it doesn’t seem like you can modify the configuration of a running agent, so you might want to start this one from scratch.

Installing NUnit

To install NUnit on your remote instance, simply Remote Desktop into your EC2 instance and install NUnit like you normally would. Take note of the nunit-console.exe installation path. In my case this was C:\Program Files (x86)\NUnit 2.6.3\bin\nunit-console.exe.

Elastic Image Configuration

After NUnit has been installed, the next step is to make your Bamboo image configuration aware of it.

Navigate to image configuration page of the elastic images and click on the Capabilities link of the image you want to enable NUnit on. Scroll down to the bottom of the screen to add a new capability.

Add NUnit Runner Capability

If you start a new instance from the configuration the agent will now be able to use the NUnit Runner.

Plan Configuration

The final step is to add a task to the build plan. Simply add a new task to your job where you want to enable NUnit on and use the NUnit Runner as a task. Configure the required project or DLL which contain your unit tests and fire off a new build.