Purpose of NUnit Parser?

I have the NUnit runner working and tests are working.  I'm new to unit testing and we're using NUnit.  I hooked up the parser and it created a file, just not sure the purpose or what to do with it.  Is Bamboo supposed to display some nicely formatted test result somewhere?  Can someone please explain the value of the NUnit parser and how to use it?

Thank you.

2 answers

1 accepted

2 votes
Accepted answer
Marcin Oles Atlassian Team Jul 29, 2015

Hi Neal,

The NUnit Runner (or basically any other test runner, like Mocha Test Runner or MSTest Runner) will execute tests. Running tests will produce report file(s) - the report format depends on testing framework, in NUnit case it should be an XML file. The Runner task afterwards will automatically gather test results, making it easy to browse test results in Bamboo.

However, you can execute tests in a custom way, not using the Runner task. For example, using a shell script - for any reasons you may have. Such execution will produce the report XML file with test results, however, it will not gather the results and will not make it browseable in Bamboo.

NUnit parser is a task that parses the XML results after tests were run (by *any* other method), and displays the test results in Bamboo. You could say it is the last phase of NUnit runner, it just skips the test execution part.

Having parsers and runners separate usually gives users more choice and more tools to use. If you do not need the parser (if the runner does all the work for you), just don't use it as it's not necessary (I'd even say it's not recommended, only use it in advanced use cases).


Task descriptions should also give you a hint what they do:

  • NUnit Runner: Executes, parses and displays NUnit test results
  • NUnit Parser: Parses and displays NUnit test results

(the execution of tests is skipped)



Hi Marcin,


Thjanks for clarifying.  Could it be possible to add your explanation of purpose of NUnit Test Parser here: https://confluence.atlassian.com/bamboo/nunit-parser-289277054.html

In order to try to to figure out what this "undocument blackbox" :-) is doing, I checked the log-file: 

simple 08-Mar-2018 10:06:39 Starting task 'Set NUnit Test result Bamboo summary' of type 'com.atlassian.bamboo.plugin.dotnet:nunit'
simple 08-Mar-2018 10:06:39 Parsing test results under D:\bamboo-home\xml-data\build-dir\DMC-MJFCOMMON01-HPGSIACGETSRC...
simple 08-Mar-2018 10:06:39 Finished task 'Set NUnit Test result Bamboo summary' with result: Succes

Unfortunately Build-Logs were not really helpful due to truncating of messages.

Hence, could it be possible to a) get full, non-truncated log output and b) more detailed informatuion, like what  unit test resutls files were truly read. 

Hi Marcin,
Thanks for explaining the process of getting test results within bamboo.
You mentioned  that NUnit parser is used to display the test results in Bamboo. Where exactly we can see this results?


Ian Buchanan Atlassian Team Aug 30, 2017

When the Bamboo build plan is properly configured, you should be able to view test results for a build in the test tab.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

808 views 3 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you