You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds opt-in support for parallel test execution and
capturing output to `System.out` and `System.err`. Both features are
disabled by default but can be enabled and configured using
configuration parameters.
The implementation is based on the Fork/Join Framework and designed to
be reusable by other test engines that extend HierarchicalTestEngine.
The Jupiter API provides annotations to declare which shared resources a
test needs to access and in which way. Moreover, the execution mode of a
test can be influenced.
In addition, a number of TestExecutionListeners have been made
thread-safe.
The documentation subproject is now configured to execute tests in
parallel. All other subprojects will have to wait as Gradle currently
blows up when used with parallel test execution.
Co-authored-by: Leonard Brünings <[email protected]>
Co-authored-by: Christian Stein <[email protected]>
Resolves#60. Closes#1461.
:DiscoverySelectors_selectMethod: {javadoc-root}/org/junit/platform/engine/discovery/DiscoverySelectors.html#selectMethod-java.lang.String-[selectMethod(String) in DiscoverySelectors]
By default, JUnit Jupiter tests are run sequentially in a single thread. Running tests in
1299
+
parallel, e.g. to speed up execution, is available as an opt-in feature since version 5.3.
1300
+
To enable parallel execution, simply set the set the
1301
+
`junit.jupiter.execution.parallel.enabled` configuration parameter to `true`, e.g. in `junit-platform.properties` (see <<running-tests-config-params>> for other options).
1302
+
1303
+
Once enabled, the JUnit Jupiter engine will execute tests on all levels of the test tree
1304
+
fully in parallel according to the provided
1305
+
<<writing-tests-parallel-execution-config, configuration>> while observing the declarative
0 commit comments