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

Elapsed time is reported incorrectly for tests run in parallel

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15, 2.16
    • Fix Version/s: 2.19
    • Labels:
      None
    • Environment:
      Intel Core i7-3770

      Description

      Configuration:

      <plugin>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>2.16</version>
      <configuration>
      <parallel>methods</parallel>
      <threadCount>2</threadCount>
      </configuration>
      </plugin>

      I am running a suite of JUnit tests in parallel with the above configuration. The "Time elapsed" reported after a test class is incorrect by a factor of the number of threads in use.

      In my case, I am running tests on an eight core machine (see Environment), with two threads-per-core. The actual elapsed time is about 47s, but the reported elapsed time is 741s.

        Attachments

          Activity

            People

            • Assignee:
              tibordigana Tibor Digana
              Reporter:
              seize-the-dave David Grant
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: