[
https://issues.apache.org/jira/browse/SUREFIRE-1179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14933357#comment-14933357
]
ASF GitHub Bot commented on SUREFIRE-1179:
------------------------------------------
Github user Tibor17 commented on the pull request:
https://github.com/apache/maven-surefire/pull/106#issuecomment-143758786
All you need to do is to call this method with Java Reflection.
There is `surefire-testng-util` module.
You should create reflection utility in there.
Please be inspired by `JUnit4ProviderUtil`, `ReflectionUtils` and `
JUnit4Reflector`.
Then create `TestNgReflector` class using `ReflectionUtils` with fail-fast
method `setDataProviderThreadCount` throwing `SurefireReflectionException`.
In your case the put message in the exception should be properly saying
that this method is supported since TestNG 5.10 or higher.
Do not forget the license header and Javadoc on the top of your class,
otherwise the rat-plugin will fail.
On Mon, Sep 28, 2015 at 3:26 PM, Julien Herr <[email protected]>
wrote:
> Sometime code is easier than explainations :) I updated #105
> <https://github.com/apache/maven-surefire/pull/105>. Feel free to comment.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/apache/maven-surefire/pull/106#issuecomment-143743363>
> .
>
--
Cheers
Tibor
> 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
> Assignee: Tibor Digana
> 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)