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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: junit-plugin
    • Labels:
      None
    • Environment:
      junit plugin 1.18
    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            kirk Zoltán Haindrich created issue -
            kirk Zoltán Haindrich made changes -
            Field Original Value New Value
            Summary Inaccurate affregation of multiple xmls containing case information about the same testsuite Inaccurate aggregation of multiple xmls containing case information about the same testsuite
            kirk Zoltán Haindrich made changes -
            Remote Link This issue links to "pull request (Web Link)" [ 14752 ]
            kirk Zoltán Haindrich made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            kirk Zoltán Haindrich made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            kirk Zoltán Haindrich made changes -
            Status In Review [ 10005 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            kirk Zoltán Haindrich made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: