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

Use parallel and fork together run some tests multiple times

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.18
    • None
    • None
    • Apache Maven 3.2.2-SNAPSHOT
      Surefire 2.18-SNAPSHOT
      JUnit 4.11

    Description

      There are 9 tests in total in the attached project, and mvn test will show 9 tests run. When I use the command " mvn test -Dparallel=classes -DforkCount=2 -DuseUnlimitedThreads=true", it shows 13 tests run (and sometimes 16), and some tests are run more than once.

      If I remove forkCount, or parallel, everything will be fine. But it is problematic when combining together.

      Apache Maven 3.2.2-SNAPSHOT
      Surefire 2.18-SNAPSHOT
      JUnit 4.11

      Thanks!

      Attachments

        1. test.tgz
          2 kB
          Qingzhou Luo

        Activity

          People

            tibordigana Tibor Digana
            seriousamlqz Qingzhou Luo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: