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

gbois closed JENKINS-8003.
--------------------------

    Resolution: Won't Fix

Unfortunately, it is not possible to provide this kind of feature in the 
Jenkins core
                
> xUnit plugin fails to parse simple xml output from unittest++
> -------------------------------------------------------------
>
>                 Key: JENKINS-8003
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-8003
>             Project: Jenkins
>          Issue Type: Bug
>          Components: xunit
>    Affects Versions: current
>         Environment: windows, linux, hudson 1.381, xUnit 1.11, unittest++ 1.4
>            Reporter: apostasia
>            Assignee: gbois
>            Priority: Critical
>
> c++ code:
> SUITE( MyTestSuite )
> {
>   bool MyFun() { return false; }
>   TEST( TestSomeStuff )
>   {
>     CHECK( MyFun() );
>     CHECK( MyFun() );
>   }
> }
> produces this xml file:
> <?xml version="1.0"?>
> <unittest-results tests="1" failedtests="1" failures="2" time="0">
> <test suite="MyTestSuite" name="TestSomeStuff" time="0">
> <failure message="/data/test.cpp(14) : MyFun()"/>
> <failure message="/data/test.cpp(15) : MyFun()"/>
> </test>
> </unittest-results>
> reported error:
> [xUnit] [ERROR] - At line 5 of 
> file:/d:/.hudson/jobs/***/UnitTest/TEST--615512892.xml:cvc-complex-type.2.4.a:
>  Invalid content was found starting with element 'failure'. One of 
> '{system-out, system-err}' is expected.
> [xUnit] [WARNING] - The converted file for the result file 
> 'd:\.hudson\jobs\***\test_vcproj2cmake_testresults.xml' (during conversion 
> process for the metric 'UnitTest-1.4 (default)') is not valid. The report 
> file has been skipped.
> however, removing one line makes it work:
> <?xml version="1.0"?>
> <unittest-results tests="1" failedtests="1" failures="1" time="0">
> <test suite="MyTestSuite" name="TestSomeStuff" time="0">
> <failure message="/data/test.cpp(14) : MyFun()"/>
> </test>
> </unittest-results>

--
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