[
https://issues.jenkins-ci.org/browse/JENKINS-13686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gregory Boissinot resolved JENKINS-13686.
-----------------------------------------
Resolution: Fixed
You don't have the right XML output.
Your file has to start with <TestLog> tag.
Change your command line as follow:
run_tests --output_format=XML --log_level=all --report_level=no
> Fail to parse boost test 1.48 log
> ---------------------------------
>
> Key: JENKINS-13686
> URL: https://issues.jenkins-ci.org/browse/JENKINS-13686
> Project: Jenkins
> Issue Type: Bug
> Components: xunit
> Affects Versions: current
> Reporter: Alexandre Parenteau
> Assignee: Gregory Boissinot
> Labels: plugin
> Attachments: ut_veloxutils.log.xml
>
>
> [velox_boost_test] $ /bin/sh -xe /tmp/hudson4958858823753656266.sh
> + cd velox/targets/linux/release/64
> + ./ut_veloxutils run_tests --output_format=XML --log_level=test_suite
> --report_level=no
> <TestLog><TestSuite name="Master Test Suite"><TestSuite
> name="test_suite_ExceptionCatcher"><TestCase
> name="test_case_ExceptionCatcher"><TestingTime>10000</TestingTime></TestCase><TestCase
>
> name="test_case_ExceptionCatcherFnPtr"><TestingTime>10000</TestingTime></TestCase></TestSuite><TestSuite
> name="test_suite_VeloxException"><TestCase
> name="test_case_empty_ctor"><TestingTime>0</TestingTime></TestCase><TestCase
> name="test_case_ctor"><TestingTime>0</TestingTime></TestCase><TestCase
> name="test_case_catch_std"><Message
> file="/home_nfs/slave/jenkins/workspace/velox/dvamain/third_party/boost_libraries/boost/test/impl/results_collector.ipp"
> line="220"><![CDATA[Test case test_case_catch_std did not check any
> assertions]]></Message><TestingTime>0</TestingTime></TestCase><TestCase
> name="test_case_VeloxCatch"><Message
> file="/home_nfs/slave/jenkins/workspace/velox/dvamain/third_party/boost_libraries/boost/test/impl/results_collector.ipp"
> line="220"><![CDATA[Test case test_case_VeloxCatch did not check any
> assertions]]></Message><TestingTime>0</TestingTime></TestCase><TestCase
> name="test_case_VeloxAlways"><TestingTime>0</TestingTime></TestCase><TestCase
> name="test_case_VeloxRethrow"><TestingTime>0</TestingTime></TestCase></TestSuite><TestSuite
> name="test_suite_loggable"><TestCase name="test_case_loggable">Basic log
> loop test took 1213us (0.001213s), 2.426000us per message
> Trace log loop test took 3003us (0.003003s), 6.006000us per message
> Formatted log loop test took 2574us (0.002574s), 5.148000us per message
> Skipped log loop test took 3us (0.000003s), 0.006000us per message
> <TestingTime>10000</TestingTime></TestCase></TestSuite><TestSuite
> name="test_suite_ExceptionCentral"><TestCase
> name="test_case_ExceptionCentral"><TestingTime>0</TestingTime></TestCase></TestSuite><TestSuite
> name="test_suite_alertable"><TestCase
> name="test_case_alert"><TestingTime>0</TestingTime></TestCase></TestSuite><TestSuite
> name="test_suite_FormattedString"><TestCase
> name="test_case_FormattedString"><TestingTime>0</TestingTime></TestCase></TestSuite></TestSuite></TestLog>All
> tests passed.
> For more information refer to:
> './ut_veloxutils.log.xml'
> [xUnit] [INFO] - Starting to record.
> [xUnit] [INFO] - Processing BoostTest-1.x (default)
> [xUnit] [INFO] - [BoostTest-1.x (default)] - 1 test report file(s) were found
> with the pattern 'velox/targets/linux/release/64/*.xml' relative to
> '/home_nfs/slave/jenkins/workspace/velox_boost_test' for the testing
> framework 'BoostTest-1.x (default)'.
> [xUnit] [ERROR] - The result file
> '/home_nfs/slave/jenkins/workspace/velox_boost_test/velox/targets/linux/release/64/ut_veloxutils.log.xml'
> for the metric 'BoostTest' is not valid. The result file has been skipped.
> [xUnit] [INFO] - Setting the build status to FAILURE
> [xUnit] [INFO] - Stopping recording.
> Build step 'Publish xUnit test result report' changed build result to FAILURE
> Finished: FAILURE
--
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