Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Thomas Verhülsdonk April 1, 2013

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

1 vote
ssetayeshfar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2013

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
TAGS
AUG Leaders

Atlassian Community Events