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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • xunit-plugin
    • None
    • Jenkins 1.405
      xUnit plugin 1.16.2
      xUnit plugin 1.25

      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"><![CDATA[check !m_acceptor passed]]></Info><Info file="./test_sip.cpp" line="180"><![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.

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

              Created:
              Updated:
              Resolved: