Why won't the JUnit Parser parse my output.xml?

I was trying to add some automated Unit Tests to my project and have been facing some problems. The Unit Tests themselves are done with googletest, which creates an XML file which should be compatible with the JUnit parser.

However, I'm getting the following error when executing the JUnit parser:

02-Apr-2013 12:11:22 Starting task ''Parse UnitTest output' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit'

02-Apr-2013 12:11:22 Parsing test results...

02-Apr-2013 12:11:22 Failing task since test cases were expected but none were found.


This doesn't seem to have anything to do with the .xml file itself, as I've tried a few. This included my own output.xml, generated by googletest and the sample outputs from https://confluence.atlassian.com/display/BAMBOO/JUnit+parsing+in+Bamboo

Update:

Up until now I told the JUnit Parser to look for ${bamboo.build.working.directory}/output.xml
When I tried **/*.xml it worked.
As I understand it now, after very carefully reading the task description, I have to give it a folder. But I can also give it the files, if I do it in ant-style (with a glob?). This is at the very least very confusing and should be further specified in the documentation.

Anyway, my problem is solved. But please answer anyway, so I can understand this.

1 answer

This widget could not be displayed.

Hi Thomas,

The problem you have experienced is a reported bug in Bamboo. Please check these pages:

https://jira.atlassian.com/browse/BAM-12979

https://jira.atlassian.com/browse/BAM-12671

Same problem is also posted here:

https://answers.atlassian.com/questions/143550/junit-parser-cannot-find-the-results-od-build

Hope this helps.

Cheers,

Sepideh

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

207 views 1 3
Join discussion

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