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?
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:
(the execution of tests is skipped)
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.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in talking to 20 people planning t...
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!
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