[ https://issues.jenkins-ci.org/browse/JENKINS-8460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ferenc Kovacs reopened JENKINS-8460: ------------------------------------ I'm experiencing the same issue. this doesn't work: https://gist.github.com/2142831/c2dc88f5179bfeecd9cd586306f9946fb88210a0 this one works (if I remove the nested testsuite tags) https://gist.github.com/2142831/3daf2e9f8fdbef30ecb800040675af63d6d8dfee I wanted to move from the built-in junit plugin to xunit when I bumped into this. The junit plugin was supporting my nested testsuites (see https://issues.jenkins-ci.org/browse/JENKINS-6545). I'm using the latest lts(1.424.6) with the latest available xunit plugin(1.40). Here is the relevant lines from the logs: 21-Mar-2012 00:43:04 com.thalesgroup.hudson.plugins.xunit.service.XUnitService infoSystemLogger INFO: [xUnit] - [JUnit] - 1 test report file(s) were found with the pattern 'junit.xml' relative to '/var/lib/jenkins/jobs/test-xunit/workspace' for the testing framework 'JUnit'. 21-Mar-2012 00:43:04 com.thalesgroup.hudson.plugins.xunit.service.XUnitService warningSystemLogger WARNING: [xUnit] - The file '/var/lib/jenkins/jobs/test-xunit/workspace/junit.xml' is an invalid file. 21-Mar-2012 00:43:04 com.thalesgroup.hudson.plugins.xunit.service.XUnitService errorSystemLogger SEVERE: [xUnit] - The result file '/var/lib/jenkins/jobs/test-xunit/workspace/junit.xml' for the metric 'JUnit' is not valid. The result file has been skipped. let me know if you need anything else to reproduce the issue. > xUnit does not parse nested <testsuite>-tags from PHPUnit > --------------------------------------------------------- > > Key: JENKINS-8460 > URL: https://issues.jenkins-ci.org/browse/JENKINS-8460 > Project: Jenkins > Issue Type: Improvement > Components: xunit > Affects Versions: current > Environment: Debian Lenny, PHP 5.3.5-0.dotdeb., PHPUnit 3.5.7 > Reporter: dito_ch > Assignee: gbois > Priority: Minor > > xUnit does not read the following output with nested <testsuite>-tags from > PHPUnit: > <testsuites> > <testsuite name="src/webroot/trackstar/protected/tests/unit" tests="1" > assertions="2" failures="0" errors="0" time="0.032417"> > <testsuite name="DbTest" file="src/protected/tests/unit/DbTest.php" tests="1" > assertions="2" failures="0" errors="0" time="0.032417"> > <testcase name="testConnection" class="DbTest" > file="src/protected/tests/unit/DbTest.php" line="4" assertions="2" > time="0.032417"/> > </testsuite> > </testsuite> > </testsuites> > The version without nested tags works: > <testsuites> > <testsuite name="DbTest" file="src/protected/tests/unit/DbTest.php" tests="1" > assertions="2" failures="0" errors="0" time="0.032417"> > <testcase name="testConnection" class="DbTest" > file="src/protected/tests/unit/DbTest.php" line="4" assertions="2" > time="0.032417"/> > </testsuite> > </testsuites> > I think it would be nice, if xUnit supports nested <testsuite>-tags. The > workaround with a xlst is somehow cumbersome. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira