Hi,
I am trying to see if running JUnit tests in parallel makes any
difference and/or significant speed-up.

I have this in my pom.xml:

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.7</version>
      <scope>test</scope>
    </dependency>

[...]

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>2.5</version>
      <configuration>
        <includes>
          <include>[...]</include>
        </includes>
        <parallel>methods</parallel>
        <threadCount>4</threadCount>
      </configuration>
    </plugin>

When I run the tests without <parallel> and <threadCount> I see:

Tests run: 9491, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: ...

While when I run the tests with <parallel> and <threadCount> as showed
above:

Tests run: 40, Failures: 0, Errors: 0, Skipped: 0

Is this a bug?

Am I doing something wrong here?

Thanks,
Paolo



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to