Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9286

xUnit plugin cannot parse XML output with exception from boost test 1.42

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.405
      xUnit plugin 1.16.2
      xUnit plugin 1.25
    • Similar Issues:

      Description

      xUnit plugin fails on parsing test result XML generated by Boost test 1.42 which contains Exception.

      The example of the file we have:

      <TestLog><TestSuite name="Master Test Suite">
      <TestSuite name="TGS_RESOURCE_DTMF_DETECTION">
      <TestCase name="RES_DTMF_DETECTION_1">
      <Message file="./res_test_dtmf_detection.cpp" line="15"><![CDATA[==== Start test using AudioCodesSimRcs ====]]></Message>
      <Info file="./test_sip.cpp" line="179"><Unable to render embedded object: File ([CDATA[check !m_acceptor passed]]></Info><Info file="./test_sip.cpp" line="180"><) not found.[CDATA[check !m_acceptorThread passed]]>
      </Info>
      <Info file="./test_sip.cpp" line="187"><![CDATA[check ! m_socket.is_open() passed]]></Info>
      <Exception file="unknown location" line="0"><![CDATA[memory access violation]]>
      <LastCheckpoint file=".\res_test_dtmf_detection.cpp" line="17"><![CDATA[]]></LastCheckpoint>
      </Exception>
      <Message file="./boost/test/impl/unit_test_log.ipp" line="161"><![CDATA[Test is aborted]]></Message>
      <TestingTime>2313000</TestingTime>
      </TestCase>
      </TestSuite></TestSuite></TestLog>

      The output:

      [xUnit] [INFO] - Starting to record.
      [xUnit] [INFO] - Processing BoostTest-1.37.0 (default)
      [xUnit] [INFO] - [BoostTest-1.37.0 (default)] - 36 test report file(s) were found with the pattern '**\TestResult*.xml' relative to 'C:\jenkins\jobs\SMC-Build\workspace' for the testing framework 'BoostTest-1.37.0 (default)'.
      [xUnit] [ERROR] - The result file 'C:\jenkins\jobs\SMC-Build\workspace\release\TestResult\TGS_RESOURCE_DTMF_DETECTION-RES_DTMF_DETECTION_1.xml' for the metric 'BoostTest-1.37.0 (default)' is not valid. The result file has been skipped.
      [xUnit] [INFO] - Stopping recording.

        Attachments

          Activity

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              antonius Anton Nikitin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: