Bamboo JUnit Parser will not parse my gtest output.xml

I tried to add some automated Unit tests to my project with Bamboo and ran into some problems. Unit testing is done using googletest, which creates an XML file that must be compatible with the JUnit parser.

However, when executing Bamboo JUnit Parser, the following error occurs:

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.
02-Apr-2013 12:11:22 Finished task 'Parse UnitTest output'

This seems to have nothing to do with the .xml file itself, since I tried several. This included my own output.xml generated by googletest and samples from https://confluence.atlassian.com/display/BAMBOO/JUnit+parsing+in+Bamboo . I also adapted the specified files to the two proposed .xsd files, which should match the output expected by JUnit Parser, but all this has no effect.

Update:
So far, I have told JUnit Parser to search for $ {bamboo.build.working.directory} /output.xml
when I tried ** / *. Xml, it worked.
As I understand it, now that I have carefully read the description of the task, I must provide it with a folder. But I can also provide it with files if I do it in ant style (with a globe?). This, at least, is very confusing and still does not fully answer the question before us. Therefore, if anyone could enlighten me, please.

+5
source share
1 answer

This is a very old question, I decided that I would add an answer for posterity. As several people commented, the configuration value for the test output files requires a relative path. The question is what?

, , , . , , , ; , .

, ant -style ( Ant ).

, , C:\git\MyProject, C:\git\MyProject\Output\Tests\output.xml, Output/Tests/output.xml " " ' . Output/**/*.xml .xml .

0

All Articles