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

xUnit does not support the flaky surefire tests generated by maven with rerun property

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.107.1
      xUnit 1.102
    • Similar Issues:

      Description

      xUnit does not support the flaky surefire tests generated by maven with rerunFailingTestsCount property. Tests with rerun property are skipped and the build is successfull even if there are failed tests

        Attachments

          Activity

          Hide
          nfalco Nikolas Falco added a comment -

          Yes, the original XSD published on apache was not correct (tracked on SUREFIRE-1550). The schema is updated and released in latest plugin version 2.2.1

          Show
          nfalco Nikolas Falco added a comment - Yes, the original XSD published on apache was not correct (tracked on SUREFIRE-1550). The schema is updated and released in latest plugin version 2.2.1
          Hide
          simonk Simon Kent added a comment -

          We have Jenkins 2.121.2 and xunit plugin V2.1.0 and experience this issue when running with reRunFailingTestsCount property. The stack trace is :
          Error when executing always post condition:
          org.jenkinsci.plugins.xunit.service.TransformerException: The result file '/home/jenkins/workspace/er_feature_release-profiles-MFHVJCXJD6Z7UELFLV45A2GLPWYCH7KF5M3DEVI3EOJREF4MOSHQ/plugins/com.gresham.darwin.server.tests.integration/target/surefire-reports/TEST-com.gresham.darwin.server.tests.integration.allocations.exceptions.MatchWithAllocationsAndExceptionsIntegrationTest.xml' for the metric 'JUnit' is not valid. The result file has been skipped.
          at org.jenkinsci.plugins.xunit.service.XUnitTransformerCallable.invoke(XUnitTransformerCallable.java:112)
          at org.jenkinsci.plugins.xunit.service.XUnitTransformerCallable.invoke(XUnitTransformerCallable.java:39)
          at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2913)

          Show
          simonk Simon Kent added a comment - We have Jenkins 2.121.2 and xunit plugin V2.1.0 and experience this issue when running with reRunFailingTestsCount property. The stack trace is : Error when executing always post condition: org.jenkinsci.plugins.xunit.service.TransformerException: The result file '/home/jenkins/workspace/er_feature_release-profiles-MFHVJCXJD6Z7UELFLV45A2GLPWYCH7KF5M3DEVI3EOJREF4MOSHQ/plugins/com.gresham.darwin.server.tests.integration/target/surefire-reports/TEST-com.gresham.darwin.server.tests.integration.allocations.exceptions.MatchWithAllocationsAndExceptionsIntegrationTest.xml' for the metric 'JUnit' is not valid. The result file has been skipped. at org.jenkinsci.plugins.xunit.service.XUnitTransformerCallable.invoke(XUnitTransformerCallable.java:112) at org.jenkinsci.plugins.xunit.service.XUnitTransformerCallable.invoke(XUnitTransformerCallable.java:39) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2913)
          Hide
          alemorato Alessandro Morato added a comment -

          I had submit a PR for this

          Show
          alemorato Alessandro Morato added a comment - I had submit a PR for this

            People

            • Assignee:
              nfalco Nikolas Falco
              Reporter:
              alemorato Alessandro Morato
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: