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

Failsafe xml for a test class has results from another class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 3.2.5, 3.3.1
    • None
    • Maven Failsafe Plugin
    • None
    • Maven/JUnit5/Mac
    • Patch

    Description

      Issue

      When I execute tests concurrently (at class level), I see the failsafe xmls being generated, but the test methods themselves seem to be mixed up with other classes.

      Expectation

      Each failsafe xml is unique to a class, which was the case with the JUnit4 provider.

      Versions

      maven failsafe plugin 3.2.5 or 3.3.1

      JUnit 5.10.2

      Sample code and Test results

      Please see attached files

      Running the tests attached

       

      mvn clean verify -Pparallel-tests

       

       

      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.example.ClassBIT
      [INFO] Running org.example.ClassAIT
      [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 s – in org.example.ClassAIT
      [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 s – in org.example.ClassBIT
      [INFO]
      [INFO] Results:
      [INFO]
      [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

      Attachments

        1. TEST-org.example.ClassAIT.xml
          7 kB
          Arvind Joshi
        2. TEST-org.example.ClassBIT.xml
          6 kB
          Arvind Joshi
        3. ClassAIT.java
          0.1 kB
          Arvind Joshi
        4. ClassBIT.java
          0.1 kB
          Arvind Joshi
        5. pom.xml
          3 kB
          Arvind Joshi

        Issue Links

          Activity

            People

              Unassigned Unassigned
              arvindjoshi Arvind Joshi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: