[JIRA] Resolved: (JENKINS-3007) Hudson does not correctly parse Google Test/PHPUnit XML output

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Resolved: (JENKINS-3007) Hudson does not correctly parse Google Test/PHPUnit XML output

JIRA noreply@jenkins-ci.org

     [ http://issues.jenkins-ci.org/browse/JENKINS-3007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

evernat resolved JENKINS-3007.
------------------------------

    Resolution: Fixed

Closing as fixed: support of PHPUnit was added in the xUnit plugin and "google test" finally fixed the issue in v1.4.0 on its side.

> Hudson does not correctly parse Google Test/PHPUnit XML output
> --------------------------------------------------------------
>
>                 Key: JENKINS-3007
>                 URL: http://issues.jenkins-ci.org/browse/JENKINS-3007
>             Project: Jenkins
>          Issue Type: Bug
>          Components: junit
>    Affects Versions: current
>         Environment: Platform: PC, OS: Windows XP
>            Reporter: sqook
>            Priority: Critical
>         Attachments: phpunitflattener.py, test.xml
>
>
> 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.

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira