After enabling parallel test execution, JUnit Jupiter can be asked to use one of three strategies to determine the concurrency of our test suite. These strategies take different approaches to configure the environment of the parallel execution, such as the number of threads to use.
In this lesson, the fixed strategy is discussed. A hardcoded number of threads can be provided with this implementation, regardless of a host machine's capabilities.
- The fixed strategy uses a hardcoded number of threads to drive parallel execution
- To set this strategy, use configuration parameter
- To configure this strategy, use configuration parameter
junit.jupiter.execution.parallel.config.fixed.parallelismand set it to an