File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed
junit-vintage-engine/src/main/java/org/junit/vintage/engine Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change 1111package org .junit .vintage .engine ;
1212
1313import static org .apiguardian .api .API .Status .INTERNAL ;
14+ import static org .apiguardian .api .API .Status .STABLE ;
1415import static org .junit .platform .engine .TestExecutionResult .successful ;
1516import static org .junit .vintage .engine .descriptor .VintageTestDescriptor .ENGINE_ID ;
1617
@@ -51,8 +52,29 @@ public final class VintageTestEngine implements TestEngine {
5152
5253 private static final int DEFAULT_THREAD_POOL_SIZE = Runtime .getRuntime ().availableProcessors ();
5354 private static final int SHUTDOWN_TIMEOUT_SECONDS = 30 ;
54- private static final String PARALLEL_EXECUTION_ENABLED = "junit.vintage.execution.parallel.enabled" ;
55- private static final String PARALLEL_POOL_SIZE = "junit.vintage.execution.parallel.pool-size" ;
55+
56+ /**
57+ * Indicates whether parallel execution is enabled for the JUnit Vintage engine.
58+ *
59+ * <p>Set this property to {@code true} to enable parallel execution of tests.
60+ * Defaults to {@code false}.
61+ *
62+ * @since 5.12
63+ */
64+ @ API (status = STABLE , since = "5.12" )
65+ public static final String PARALLEL_EXECUTION_ENABLED = "junit.vintage.execution.parallel.enabled" ;
66+
67+ /**
68+ * Specifies the size of the thread pool to be used for parallel execution.
69+ *
70+ * <p>Set this property to an integer value to specify the number of threads
71+ * to be used for parallel execution. Defaults to the number of available
72+ * processors.
73+ *
74+ * @since 5.12
75+ */
76+ @ API (status = STABLE , since = "5.12" )
77+ public static final String PARALLEL_POOL_SIZE = "junit.vintage.execution.parallel.pool-size" ;
5678
5779 @ Override
5880 public String getId () {
You can’t perform that action at this time.
0 commit comments