Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1480

parallel tests may produce invalid .xml report

    XMLWordPrintableJSON

Details

    Description

      Relevant software:

      • Jenkins 2.108
      • Maven 3.??
      • JUnit 4.12
      • maven-failsafe-plugin 2.20.1 (I have seen this issue with surefire as well)

      I have a testsuite (one JUnit class) that contains multiple tests (multiple JUnit methods), which are all run in parallel. Some of the tests may be ignore using JUnit Assume.

      On occasion (not 100% reproducible), the resulting report will contain an entry like:

      < message="Skip test!">
      

      The correct entry, as is produced most of the time, should be:

      <skipped message="Skip test!"/>
      

      The invalid formatted XML, when run in Jenkins, results in the test being flagged as failed, and Jenkins simply has the message: "TEST-....xml.[failed-to-read]" (the dots are replaced with the correct filename!).

      Attachments

        1. FailedXMLReport.txt
          4 kB
          Heiko Wentzke
        2. Stacktrace_failedTest.txt
          11 kB
          Heiko Wentzke

        Activity

          People

            Unassigned Unassigned
            mlehky Mark Lehky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: