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.
source
share