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

Incorrect test count with JUnit5 parallel execution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.0.0-M4, 3.0.0-M5
    • None
    • None
    • None
    • Windows 10, maven 3.6.3

    Description

      This is reproducible in 3.0.0-M4 and in master

       

      When running the tests in parallel, the counts don't match with the ones defined in the test.

       

      It was raised against [JUnit|https://github.com/junit-team/junit5/issues/1975], however the team pointed out to Surefire.

       

      The test project is [here|https://github.com/priyankshah217/junit5sample].

       

      `mvn test`

       

      Should give 3 for each of SampleTest and SampleTest2, but it gives 6 for SampleTest and 0 for SampleTest2

      Attachments

        Issue Links

          Activity

            People

              tibordigana Tibor Digana
              asashour Ahmed Ashour
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: