3.17. Parallel Execution
By default, JUnit Jupiter tests are run sequentially in a single thread. Running tests in parallel, e.g. to speed up execution, is available as an opt-in feature since version 5.3. To enable parallel execution, simply set thejunit.jupiter.execution.parallel.enabled
configuration parameter to true
, e.g. in junit-platform.properties
(see Configuration Parameters for other options).
Once enabled, the JUnit Jupiter engine will execute tests on all levels of the test tree fully in parallel according to the provided configuration while observing the declarative synchronization mechanisms. Please note that the Capturing Standard Output/Error feature needs to enabled separately.
Parallel test execution is currently an experimental feature. You’re invited to give it a try and provide feedback to the JUnit team so they can improve and eventually promote this feature. |
3.17. Parallel Execution
'스터디 > JUnit' 카테고리의 다른 글
[JUnit 5] 3.15. Test Templates (0) | 2018.12.19 |
---|