diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e6f957d1a..aad91dc754 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +- [JUnit Platform Engine] Add constant for fixed.max-pool-size property ([#2713](https://github.com/cucumber/cucumber-jvm/pull/2713) M.P. Korstanje) ## [7.11.2] - 2023-03-23 ### Fixed diff --git a/cucumber-junit-platform-engine/README.md b/cucumber-junit-platform-engine/README.md index 628f5508be..0011e94153 100644 --- a/cucumber-junit-platform-engine/README.md +++ b/cucumber-junit-platform-engine/README.md @@ -197,7 +197,7 @@ strategy. `cucumber.execution.parallel.config.dynamic.factor`. * `fixed`: Set `cucumber.execution.parallel.config.fixed.parallelism` to the - desired parallelism and `cucumber.execution.parallel.config.config.fixed.max-pool-size` + desired parallelism and `cucumber.execution.parallel.config.fixed.max-pool-size` to the maximum pool size of the underlying ForkJoin pool. * `custom`: Specify a custom `ParallelExecutionConfigurationStrategy` diff --git a/cucumber-junit-platform-engine/src/main/java/io/cucumber/junit/platform/engine/Constants.java b/cucumber-junit-platform-engine/src/main/java/io/cucumber/junit/platform/engine/Constants.java index 233d6909a5..5b1e25d258 100644 --- a/cucumber-junit-platform-engine/src/main/java/io/cucumber/junit/platform/engine/Constants.java +++ b/cucumber-junit-platform-engine/src/main/java/io/cucumber/junit/platform/engine/Constants.java @@ -7,6 +7,7 @@ import static org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy.CONFIG_CUSTOM_CLASS_PROPERTY_NAME; import static org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy.CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME; +import static org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy.CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME; import static org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy.CONFIG_FIXED_PARALLELISM_PROPERTY_NAME; import static org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy.CONFIG_STRATEGY_PROPERTY_NAME; @@ -271,6 +272,19 @@ public final class Constants { */ public static final String PARALLEL_CONFIG_FIXED_PARALLELISM_PROPERTY_NAME = PARALLEL_CONFIG_PREFIX + CONFIG_FIXED_PARALLELISM_PROPERTY_NAME; + /** + * Property name used to determine the maximum pool size for the + * {@link DefaultParallelExecutionConfigurationStrategy#FIXED} configuration + * strategy: {@value} + *
+ * Value must be an integer and greater than or equal to + * {@value #PARALLEL_CONFIG_FIXED_PARALLELISM_PROPERTY_NAME}; defaults to + * {@code 256 + fixed.parallelism}. + * + * @see DefaultParallelExecutionConfigurationStrategy#FIXED + */ + public static final String PARALLEL_CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME = PARALLEL_CONFIG_PREFIX + + CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME; /** * Property name of the factor used to determine the desired parallelism for