Github user juherr commented on the pull request:
https://github.com/apache/maven-surefire/pull/106#issuecomment-143677343
I had time to analyze and I found that `dataProviderThreadCount` is taken
into account only when `m_commandLineTestClasses != null ||
m_commandLineMethods != null`.
`m_commandLineTestClasses` could only be != null when `setTestClasses` is
called, and `m_commandLineMethods` could only be != null when `-methods` is
used, but `-methods` is not available via the deprecated `TestNG#configure(Map
cmdLineArgs)`.
I can't say if this behavior is expected or if something should be done in
TestNG. What do you think @cbeust?
Another solution would be to update `TestNGMapConfigurator#configure(
XmlSuite suite, Map<String, String> options )` (or another Configurator) from
surefire in order to use `suite.setDataProviderThreadCount()`. But the method
is only available since 5.10 where the current testng used by surefire is 5.7.
But I don't know if I' allowed to update the dependency.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]