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

TestNG parallel options seem to not be honored

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.18.1
    • Fix Version/s: 2.19
    • Component/s: TestNG support
    • Labels:
      None
    • Environment:
      Windows 7 x64, Java 8 (1.8.0_60), TestNG v6.9.6, Maven Surefire version 2.18.1

      Description

      I have some simple tests I'm trying to configure to run in parallel using Maven 3.3.3 and the latest versions of TestNG. I've set my POM file to the following:

      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>2.18.1</version>
      <configuration>
      <parallel>methods</parallel>
      <threadCount>50</threadCount>
      </configuration>
      </plugin>

      When I run in parallel, I only get 10 threads no matter the setting and I can not change it. I've tried adding the annotation parameter to the method as well:

      @Test(dataProvider = "dataProvider", threadPoolSize = 50)

      Nothing seems to help. I have a simple project that illustrates what I'm seeing.

        Attachments

          Activity

            People

            • Assignee:
              tibordigana Tibor Digana
              Reporter:
              predatorvi Jeff Vincent
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: