You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2024/06/27 06:15:22 UTC

(maven-surefire) branch update-reporting updated: [SUREFIRE-2249] Update doc for parameter 'properties' to include JUnit

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

michaelo pushed a commit to branch update-reporting
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/update-reporting by this push:
     new b15138ba5 [SUREFIRE-2249] Update doc for parameter 'properties' to include JUnit
b15138ba5 is described below

commit b15138ba51c2cc9ef089461b33cebe082f6c5d62
Author: Brian Demers <bd...@apache.org>
AuthorDate: Mon Jun 17 20:38:49 2024 -0400

    [SUREFIRE-2249] Update doc for parameter 'properties' to include JUnit
    
    The Surefire and Failsafe 'properties' field works with JUnit and TestNG
    
    This closes #750
---
 .../maven/plugin/surefire/AbstractSurefireMojo.java  | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
index f158c68d1..664121d04 100644
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
@@ -329,9 +329,23 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref
     private Map<String, String> systemPropertyVariables;
 
     /**
-     * List of properties for configuring all TestNG related configurations. This is the new preferred method of
-     * configuring TestNG.
-     *
+     * List of properties for configuring the testing provider. This is the preferred method of
+     * configuring TestNG and JUnit platform providers.<br><br>
+     * JUnit platform properties may be defined in a {@code configurationParameters} element:
+     * <pre><code>{@literal <properties>}
+     *     {@literal <configurationParameters>}
+     *         junit.jupiter.execution.parallel.enabled = true
+     *         junit.jupiter.execution.parallel.mode.default = concurrent
+     *     {@literal </configurationParameters>}
+     * {@literal </properties>}</code></pre>
+     * <br>
+     * TestNG properties may be defined as distinct element blocks:
+     * <pre><code>{@literal <properties>}
+     *     {@literal <property>}
+     *         {@literal <name>parallel</name>}
+     *         {@literal <value>methods</value>}
+     *     {@literal </property>}
+     * {@literal </properties>}</code></pre>
      * @since 2.4
      */
     @Parameter