I've run into some problems while trying to integrate my hudson CI
server with XML test results published by gtest. Namely, hudson
always reports that "None of the test reports contained any result".
After doing a bit of googling, I found a bug report for issue #74
(
http://code.google.com/p/googletest/issues/detail?id=74) which had
been closed as "wontfix", as the XML generated by gtest is for
individual results.
I then got the idea to make a junitreport task in my ant build script,
which assembles an XML report based on the original XML output of
gtest. This works fine, and I've looked at the output and it looks
something like this:
<testsuites>
<testsuite disabled="0" errors="0" failures="0" id="0"
name="AllTests" package="" tests="369" time="34.578">
<testsuite disabled="0" errors="0" failures="0" name="blah"
tests="7" time="9.469">
<testcase classname="application" name="blah_blah_blah"
status="run" time="0" />
....
</testsuite>
</testsuite>
</testsuites>
I'm not a Java guy (hence gtest), so unfortunately, I'm not really
familiar with what the "correct" output should look like. At any
rate, when I point hudson towards this XML file, it generates the same
error as when I pointed it towards the raw XML output -- it claims no
results could be read. Has anyone else run into this? Any
workarounds or fixes for this problem?