Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven surefire plugin not setting -suitethreadpoolsize parameter for parallel suites execution. #548

Closed
sjavvadi opened this issue Sep 15, 2014 · 1 comment

Comments

@sjavvadi
Copy link

Currently latest surefire plugin (version 2.17) is using deprecated TestNG configure (Map) method in which Map argument is converted to CommandLineArgs. Unfortunately the suitethreadpoolsize parameter is missing and CommandLineArgs.SUITE_THREAD_POOL_SIZE is not set and not executed.

The following fragment of code placed in org.testng.TestNG.java in method configure(Map cmdLineArgs) will resolve this issue:

Object suiteThreadPoolSize = cmdLineArgs.get(CommandLineArgs.SUITE_THREAD_POOL_SIZE);
if (null != suiteThreadPoolSize) {
if (suiteThreadPoolSize instanceof String){
result.suiteThreadPoolSize=Integer.parseInt((String) suiteThreadPoolSize);
}
if (suiteThreadPoolSize instanceof Integer){
result.suiteThreadPoolSize=(Integer) suiteThreadPoolSize;
}
}

@juherr
Copy link
Member

juherr commented Jul 22, 2015

Duplicate of #546

@juherr juherr closed this as completed Jul 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants