Add control of PMD execution threads to plugin goal#700
Conversation
|
@adangel what needs to happen for this to be reviewed and accepted? |
|
A test will be appreciated for it |
|
@slawekjaranowski happy to do that, could you suggest where this would fit in the existing tests? As I noted above this doesn't change the output of the analysis / report in any way. |
|
@slawekjaranowski any thoughts on the appropriate type of tests for this, so that we can complete this change? |
|
We can do a method static and package protected with next param static Integer numThreadsConverter(String executionThreadsString, int availableProcessors) method can return null for it will be easy test by UT, with many cases, we can use a parameterized test in production code it will be executed by: numThreadsConverter(executionThreadsString, Runtime.getRuntime().availableProcessors()) apologies for delay response 😄 |
Following this checklist to help us incorporate your
contribution quickly and easily:
Note that commits might be squashed by a maintainer on merge.
This may not always be possible but is a best-practice.
mvn verifyto make sure basic checks pass.A more thorough check will be performed on your pull request automatically.
mvn -Prun-its verify).If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
This change adds feature #380
Tested locally but I have not yet written any unit tests as I was not sure of the style/approach that would be considered suitable for this type of additional configuration. as it doesn't change the output of the analysis/report in anyway. It would be easy to separate the handling of the configuration and add tests for that if required.