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

Inaccurate aggregation of multiple xmls containing case information about the same testsuite

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • junit-plugin
    • None
    • junit plugin 1.18

      When the same testsuite appears in multiple result xmls; the current aggregation logic fails to aggregate neither the sum of the testcases - and neither the total testclass runtime - instead it reports only 1 testclass'es runtime.

      example xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <testsuites name="Automation Tests" tests="2" errors="0" failures="0" ignored="0">
          <testsuite name="test.fs.FileSystemTests" time="50">
            <testcase name="testPrefix1" classname="test.fs.FileSystemTest1" time="10"/>
          </testsuite>
          <testsuite name="test.fs.FileSystemTests" time="50">
            <testcase name="testPrefix2" classname="test.fs.FileSystemTest1" time="10"/>
          </testsuite>
      </testsuites>
      

      in the above example the runtime of test.fs.FileSystemTests should be 100

      Encountered during hive / maven 2.19.1 upgrade..details:
      https://issues.apache.org/jira/browse/HIVE-14572

            kirk Zoltán Haindrich
            kirk Zoltán Haindrich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: