maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SUREFIRE-1177) TestNG "suitethreadpoolsize" parameter can not be set by Maven Surefire
Date Fri, 18 Sep 2015 17:05:05 GMT

    [ https://issues.apache.org/jira/browse/SUREFIRE-1177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14875958#comment-14875958
] 

Tibor Digana edited comment on SUREFIRE-1177 at 9/18/15 5:05 PM:
-----------------------------------------------------------------

I will find some good examples on Sunday evening.
A fix for "new" testng configuration method would be great to have but I guess it will invalidate
your current fix, needs more time to complete and all tests must pass. In such case you would
need to have a look in TestNGMapConfigurator and subclasses. It's not that much to see because
the module surefire-testng* is small but you must have deep look into this to finish it properly
since this would mean a redesign.


was (Author: tibor17):
I will find some good examples on Sunday evening.
A fix for "new" testng configuration method would be great to have but I guess it will invalidate
your current fix, needs more time to complete and all tests must pass. In such case you would
need to have a look in TestNGMapConfigurator and subclasses. It's not that much to see because
the module surefire-testng* is small but you must have deep look into this to make it properly
since this would mean a redesign.

> TestNG "suitethreadpoolsize" parameter can not be set by Maven Surefire
> -----------------------------------------------------------------------
>
>                 Key: SUREFIRE-1177
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1177
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: TestNG support
>    Affects Versions: 2.18.1
>            Reporter: Jan Dundáček
>
> Because of Surefire is using deprecated TestNG.configure(Map) method, parameter "suitethreadpoolsize"
value is not read by TestNG. And so test suites can not be run in parallel. This parameter
is read only in TestNG.configure(CommandLineArgs) method.
>   /**
>    * This method is invoked by Maven's Surefire to configure the runner,
>    * do not remove unless you know for sure that Surefire has been updated
>    * to use the new configure(CommandLineArgs) method.
>    *
>    * @deprecated use new configure(CommandLineArgs) method
>    */
>   @Deprecated
>   public void configure(Map cmdLineArgs) {
>   ....



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message