This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new da7e17b  add junit changes
da7e17b is described below

commit da7e17b206f79f14348fd6fb6c51591e0750dcbb
Author: Paul King <[email protected]>
AuthorDate: Mon Apr 6 17:31:48 2026 +1000

    add junit changes
---
 site/src/site/releasenotes/groovy-6.0.adoc | 36 ++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/site/src/site/releasenotes/groovy-6.0.adoc 
b/site/src/site/releasenotes/groovy-6.0.adoc
index 451764d..25955dc 100644
--- a/site/src/site/releasenotes/groovy-6.0.adoc
+++ b/site/src/site/releasenotes/groovy-6.0.adoc
@@ -808,6 +808,42 @@ Previously, users had to manually set `args` within their 
script
 as a workaround. A new _Set Script Arguments_ option in the _Script_ menu
 lets you specify space-separated arguments that are passed to the script.
 
+== JUnit 6 Support
+
+Groovy 6 updates its testing support to include JUnit 6
+(https://issues.apache.org/jira/browse/GROOVY-11788[GROOVY-11788]).
+JUnit 6 (Jupiter 6.x) is the latest evolution of JUnit,
+building upon the JUnit 5 platform.
+
+=== Using JUnit 6 with Groovy
+
+For most users, no special Groovy module is needed --
+simply add the standard JUnit Jupiter dependencies to your
+Gradle or Maven project and write tests in Groovy as usual:
+
+[source,groovy]
+----
+// build.gradle
+testImplementation 'org.junit.jupiter:junit-jupiter:6.0.3'
+----
+
+=== The groovy-test-junit6 module
+
+The new `groovy-test-junit6` module
+provides additional capabilities for users who need them:
+
+* **Running individual test scripts** -- execute a Groovy test file
+  directly as a script without a full build tool setup
+* **Conditional test execution annotations** -- scripting support
+  for JUnit Jupiter's conditional execution annotations
+  (https://issues.apache.org/jira/browse/GROOVY-11887[GROOVY-11887]),
+  allowing conditions to be expressed as Groovy scripts
+* **Convenient dependency management** -- a single dependency that
+  transitively pulls in compatible JUnit 6 libraries
+
+Similarly, the existing `groovy-test-junit5` module continues
+to provide the same capabilities for JUnit 5 users.
+
 == Improved Annotation Validation
 
 Groovy 6 closes gaps in annotation target validation

Reply via email to