[
https://issues.apache.org/jira/browse/SUREFIRE-1179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14791789#comment-14791789
]
Tibor Digana edited comment on SUREFIRE-1179 at 9/17/15 8:37 AM:
-----------------------------------------------------------------
See my comment in SUREFIRE-1177. I tested TestNG 6.8 and 6.9.6 with surefire
configuration of parallel=methods and threadCount=2 and the timestamps of test
methods really overlapped.
The problem is in your POM
{code}
<parallel>tests</parallel>
{code}
You mean parallel=methods or classes.
First of all read the documentation because these values in configuration
parameter may differ from TestNG configuration
https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#parallel
https://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html
https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html#Running_tests_in_parallel
was (Author: tibor17):
See my comment in SUREFIRE-1177. I tested TestNG 6.8 and 6.9.6 with surefire
configuration of parallel=methods and threadCount=2 and the timestamps of test
methods really overlapped.
The problem is in your POM
{code}
<parallel>tests</parallel>
{@code}
You mean parallel=methods or classes.
First of all read the documentation because these values in configuration
parameter may differ from TestNG configuration
https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#parallel
https://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html
https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html#Running_tests_in_parallel
> TestNG parallel options seem to not be honored
> ----------------------------------------------
>
> Key: SUREFIRE-1179
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1179
> Project: Maven Surefire
> Issue Type: Bug
> Components: TestNG support
> Affects Versions: 2.18.1
> Environment: Windows 7 x64, Java 8 (1.8.0_60), TestNG v6.9.6, Maven
> Surefire version 2.18.1
> Reporter: Jeff Vincent
> Attachments: testng-test.zip
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)