Hudson does not correctly parse Google Test/PHPUnit XML output

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Google test (aka gtest), a C++ testing framework, generates XML output files which Hudson fails to
      parse correctly. The problem is that gtest generates a single XML file containing all test results for each
      class, rather than one XML file per class, like so:

      <testsuite tests="453" failures="0" disabled="0" errors="0" time="36.09" name="AllTests">
      <testsuite name="ExampleClassname" tests="7" failures="0" disabled="0" errors="0" time="9.28">
      <testcase name="exampleTestName" status="run" time="0" classname="ExampleClassname" />
      </testsuite>
      </testsuite>

      Hudson complains that no results could be read from the resulting XML file. I wrote a perl script to
      break the testsuites up into individual files, and then pointed hudson to the directory containing those
      files, and it was able to parse them correctly.

            Assignee:
            Unassigned
            Reporter:
            sqook
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: