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

For Unittest++ xml, only the first failure of each test case is recognized

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.653, Linux
    • Similar Issues:

      Description

      For this example xml:

      <?xml version="1.0"?>
      <unittest-results>
        <test suite="Package.Suite" name="Testname">
          <failure message="Path/Filename.cxx(1) : Failed A"/>
          <failure message="Path/Filename.cxx(2) : Failed B"/>
          <failure message="Path/Filename.cxx(3) : Failed C"/>
        </test>
      </unittest-results>
      

      the xUnit plugin shows only the first failure "Failed A" in the web UI. The 2nd and 3rd failures ("Failed B" and "Failed C") were not displayed.

        Attachments

          Activity

          joe_merten Joe Merten created issue -
          Hide
          joe_merten Joe Merten added a comment - - edited

          Ok, now seeing at #JENKINS-11217, Gregory Boissinot wrote:

          Can't fix it. A limitation of JUnit capabilities.
          It's a Jenkins JUnit core issue.

          But might xUnit merge them together before passing to JUnit core?

          Show
          joe_merten Joe Merten added a comment - - edited Ok, now seeing at # JENKINS-11217 , Gregory Boissinot wrote: Can't fix it. A limitation of JUnit capabilities. It's a Jenkins JUnit core issue. But might xUnit merge them together before passing to JUnit core?
          nfalco Nikolas Falco made changes -
          Field Original Value New Value
          Assignee Gregory Boissinot [ gbois ] Nikolas Falco [ nfalco ]
          nfalco Nikolas Falco made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Nikolas Falco
          Path:
          src/main/java/org/jenkinsci/plugins/xunit/types/UnitTest.java
          src/main/java/org/jenkinsci/plugins/xunit/types/Valgrind.java
          src/main/resources/org/jenkinsci/plugins/xunit/types/unittest-1.1-to-junit-1.0.xsl
          src/main/resources/org/jenkinsci/plugins/xunit/types/unittest-1.1-to-junit.xsl
          src/test/java/org/jenkinsci/plugins/xunit/types/UnitTestTest.java
          src/test/resources/org/jenkinsci/plugins/xunit/types/unitTest++/testcase1/junit-result.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/unitTest++/testcase1/testresult.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/unitTest++/testcase2/junit-result.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/unitTest++/testcase2/result.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/unitTest++/testcase3/junit-result.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/unitTest++/testcase3/result.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/unittest++/testcase1/input.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/unittest++/testcase1/result.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/unittest++/testcase2/input.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/unittest++/testcase2/result.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/unittest++/testcase3/input.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/unittest++/testcase3/result.xml
          http://jenkins-ci.org/commit/xunit-plugin/4e45887594c69d5c0d652e3c33140fa63ac86d1f
          Log:
          JENKINS-41093 For Unittest++ xml, only the first failure of each test case is recognized

          Merge failure message into one.

          *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

          Functionality will be removed from GitHub.com on January 31st, 2019.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nikolas Falco Path: src/main/java/org/jenkinsci/plugins/xunit/types/UnitTest.java src/main/java/org/jenkinsci/plugins/xunit/types/Valgrind.java src/main/resources/org/jenkinsci/plugins/xunit/types/unittest-1.1-to-junit-1.0.xsl src/main/resources/org/jenkinsci/plugins/xunit/types/unittest-1.1-to-junit.xsl src/test/java/org/jenkinsci/plugins/xunit/types/UnitTestTest.java src/test/resources/org/jenkinsci/plugins/xunit/types/unitTest++/testcase1/junit-result.xml src/test/resources/org/jenkinsci/plugins/xunit/types/unitTest++/testcase1/testresult.xml src/test/resources/org/jenkinsci/plugins/xunit/types/unitTest++/testcase2/junit-result.xml src/test/resources/org/jenkinsci/plugins/xunit/types/unitTest++/testcase2/result.xml src/test/resources/org/jenkinsci/plugins/xunit/types/unitTest++/testcase3/junit-result.xml src/test/resources/org/jenkinsci/plugins/xunit/types/unitTest++/testcase3/result.xml src/test/resources/org/jenkinsci/plugins/xunit/types/unittest++/testcase1/input.xml src/test/resources/org/jenkinsci/plugins/xunit/types/unittest++/testcase1/result.xml src/test/resources/org/jenkinsci/plugins/xunit/types/unittest++/testcase2/input.xml src/test/resources/org/jenkinsci/plugins/xunit/types/unittest++/testcase2/result.xml src/test/resources/org/jenkinsci/plugins/xunit/types/unittest++/testcase3/input.xml src/test/resources/org/jenkinsci/plugins/xunit/types/unittest++/testcase3/result.xml http://jenkins-ci.org/commit/xunit-plugin/4e45887594c69d5c0d652e3c33140fa63ac86d1f Log: JENKINS-41093 For Unittest++ xml, only the first failure of each test case is recognized Merge failure message into one. * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
          nfalco Nikolas Falco made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              nfalco Nikolas Falco
              Reporter:
              joe_merten Joe Merten
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: