[ 
https://issues.jenkins-ci.org/browse/JENKINS-8460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161623#comment-161623
 ] 

Ferenc Kovacs commented on JENKINS-8460:
----------------------------------------

hm.
now I'm getting "for the metric 'JUnit' is not valid. The result file has been 
skipped." for each of my sample junit.xml.
could you give me a junit file which works for you?
(of course all of my sample and "production" files are working with the 
built-in junit plugin just fine)
I tried to test it with the latest release (non-lts) on a vanila ubuntu vm: 
same problem.
                
> 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

        

Reply via email to