Skip to content

Commit d6fd75e

Browse files
committed
Write release-note and user-guide
Issue: junit-team#4135 Signed-off-by: yongjunhong <[email protected]>
1 parent fc7b9c0 commit d6fd75e

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

documentation/src/docs/asciidoc/release-notes/release-notes-5.12.0-M1.adoc

+8-1
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,11 @@ JUnit repository on GitHub.
155155
[[release-notes-5.12.0-M1-junit-vintage-new-features-and-improvements]]
156156
==== New Features and Improvements
157157

158-
* ❓
158+
* Introduced support for parallel execution in the JUnit Vintage engine.
159+
- Added the `junit.vintage.execution.parallel.enabled` property to enable or disable parallel execution.
160+
Defaults to `false`.
161+
- Added the `junit.vintage.execution.parallel.pool-size` property to configure the size of the thread pool used for
162+
parallel execution. Defaults to the number of available processors.
163+
- Enhanced the `VintageTestEngine` to respect these properties and execute tests in parallel when enabled.
164+
- Improved test execution performance by allowing multiple tests to run concurrently, reducing overall
165+
test suite execution time.

documentation/src/docs/asciidoc/user-guide/migration-from-junit4.adoc

+23
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,29 @@ annotated with `@Category(Example.class)`, it will be tagged with `"com.acme.Exa
3636
Similar to the `Categories` runner in JUnit 4, this information can be used to filter the
3737
discovered tests before executing them (see <<running-tests>> for details).
3838

39+
[[migrating-from-junit4-parallel-execution]]
40+
=== Parallel Execution Support in JUnit Vintage
41+
42+
JUnit Vintage now supports parallel execution of tests, allowing existing JUnit 3 and
43+
JUnit 4 tests to benefit from improved performance through concurrent test execution.
44+
45+
To enable parallel execution, set the `junit.vintage.execution.parallel.enabled` property
46+
to `true`. By default, this property is set to `false`.
47+
48+
You can also configure the size of the thread pool used for parallel execution by setting
49+
the `junit.vintage.execution.parallel.pool-size` property. By default, this property is
50+
set to the number of available processors.
51+
52+
Example configuration in `junit-platform.properties`:
53+
54+
[source,properties]
55+
----
56+
junit.vintage.execution.parallel.enabled=true
57+
junit.vintage.execution.parallel.pool-size=4
58+
----
59+
60+
With these properties set, the `VintageTestEngine` will execute tests in parallel,
61+
significantly reducing the overall test suite execution time.
3962

4063
[[migrating-from-junit4-tips]]
4164
=== Migration Tips

0 commit comments

Comments
 (0)