diff --git a/0001-Port-to-TestNG-7.4.0.patch b/0001-Port-to-TestNG-7.4.0.patch index f15d9c4..78588ac 100644 --- a/0001-Port-to-TestNG-7.4.0.patch +++ b/0001-Port-to-TestNG-7.4.0.patch @@ -1,4 +1,4 @@ -From 71bca819927dcd976ece1aab6cdb9ddd4aab8a09 Mon Sep 17 00:00:00 2001 +From 5656f9c533dfd7087af7475cb274afcc26f10c02 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Mon, 10 Jul 2017 10:37:50 +0200 Subject: [PATCH 1/2] Port to TestNG 7.4.0 @@ -16,7 +16,7 @@ Subject: [PATCH 1/2] Port to TestNG 7.4.0 9 files changed, 104 insertions(+), 31 deletions(-) diff --git a/pom.xml b/pom.xml -index 432d7ebae..75a61b38e 100644 +index 46ed3c60a..36fbdc5df 100644 --- a/pom.xml +++ b/pom.xml @@ -98,7 +98,7 @@ @@ -29,7 +29,7 @@ index 432d7ebae..75a61b38e 100644 scm:git:https://gitbox.apache.org/repos/asf/maven-surefire.git surefire-archives/surefire-LATEST diff --git a/surefire-providers/surefire-testng-utils/pom.xml b/surefire-providers/surefire-testng-utils/pom.xml -index 2816d9329..fbb357d02 100644 +index 19d6d0334..4e86fb9dc 100644 --- a/surefire-providers/surefire-testng-utils/pom.xml +++ b/surefire-providers/surefire-testng-utils/pom.xml @@ -47,7 +47,6 @@ @@ -240,7 +240,7 @@ index c0e7838bd..5f180624d 100644 } } diff --git a/surefire-providers/surefire-testng/pom.xml b/surefire-providers/surefire-testng/pom.xml -index aa23267c3..33b1ef76f 100644 +index e180a41ac..72ac6bad5 100644 --- a/surefire-providers/surefire-testng/pom.xml +++ b/surefire-providers/surefire-testng/pom.xml @@ -57,7 +57,6 @@ @@ -353,5 +353,5 @@ index 097a74d1e..8b34db85d 100755 } -- -2.46.1 +2.47.0 diff --git a/0002-Unshade-surefire.patch b/0002-Unshade-surefire.patch index 7061e9b..b50473c 100644 --- a/0002-Unshade-surefire.patch +++ b/0002-Unshade-surefire.patch @@ -1,102 +1,103 @@ -From b29247a68ef70e97651718682b6f66cfb05aeed9 Mon Sep 17 00:00:00 2001 +From baf95099bc61a6e5eed9172576b4de175cbad6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fridrich=20=C5=A0trba?= Date: Tue, 1 Oct 2024 22:01:47 +0200 Subject: [PATCH 2/2] Unshade surefire --- - maven-failsafe-plugin/pom.xml | 13 +++++--- + maven-failsafe-plugin/pom.xml | 26 ++++--------- .../maven/plugin/failsafe/VerifyMojo.java | 2 +- - .../util/FailsafeSummaryXmlUtils.java | 6 ++-- - maven-surefire-common/pom.xml | 32 +++++++++++++------ - .../plugin/surefire/AbstractSurefireMojo.java | 22 ++++++------- + .../util/FailsafeSummaryXmlUtils.java | 6 +-- + maven-surefire-common/pom.xml | 37 +++++++++++-------- + .../plugin/surefire/AbstractSurefireMojo.java | 22 +++++------ .../surefire/StartupReportConfiguration.java | 2 +- .../maven/plugin/surefire/SurefireHelper.java | 2 +- .../plugin/surefire/SurefireProperties.java | 2 +- .../maven/plugin/surefire/TestClassPath.java | 2 +- .../ClasspathForkConfiguration.java | 2 +- .../DefaultForkConfiguration.java | 2 +- - .../surefire/booterclient/ForkStarter.java | 4 +-- - .../JarManifestForkConfiguration.java | 8 ++--- + .../surefire/booterclient/ForkStarter.java | 4 +- + .../JarManifestForkConfiguration.java | 8 ++-- .../ModularClasspathForkConfiguration.java | 2 +- - .../lazytestprovider/Commandline.java | 6 ++-- - .../extensions/SurefireForkChannel.java | 4 +-- - .../surefire/report/ConsoleReporter.java | 4 +-- - .../report/DefaultReporterFactory.java | 4 +-- + .../lazytestprovider/Commandline.java | 6 +-- + .../extensions/SurefireForkChannel.java | 4 +- + .../surefire/report/ConsoleReporter.java | 4 +- + .../report/DefaultReporterFactory.java | 4 +- .../plugin/surefire/report/FileReporter.java | 2 +- .../surefire/report/FileReporterUtils.java | 2 +- - .../surefire/report/StatelessXmlReporter.java | 8 ++--- - .../plugin/surefire/report/TestSetStats.java | 4 +-- + .../surefire/report/StatelessXmlReporter.java | 8 ++-- + .../plugin/surefire/report/TestSetStats.java | 4 +- .../surefire/report/WrappedReportEntry.java | 2 +- .../plugin/surefire/util/FileScanner.java | 2 +- .../plugin/surefire/util/ScannerUtil.java | 2 +- .../surefire/util/SpecificFileFilter.java | 2 +- .../maven/surefire/stream/EventDecoder.java | 2 +- - .../surefire/AbstractSurefireMojoTest.java | 6 ++-- + .../surefire/AbstractSurefireMojoTest.java | 6 +-- .../plugin/surefire/SurefireHelperTest.java | 2 +- - .../booterclient/ForkConfigurationTest.java | 22 ++++++------- - .../booterclient/ForkStarterTest.java | 6 ++-- + .../booterclient/ForkConfigurationTest.java | 22 +++++------ + .../booterclient/ForkStarterTest.java | 6 +-- .../JarManifestForkConfigurationTest.java | 2 +- ...ModularClasspathForkConfigurationTest.java | 2 +- - .../lazytestprovider/CommandlineTest.java | 4 +-- + .../lazytestprovider/CommandlineTest.java | 4 +- .../report/DefaultReporterFactoryTest.java | 2 +- - .../report/StatelessXmlReporterTest.java | 6 ++-- + .../report/StatelessXmlReporterTest.java | 6 +-- .../surefire/report/TestSetStatsTest.java | 2 +- .../StatelessTestsetInfoReporterTest.java | 2 +- .../report/ConsoleOutputFileReporterTest.java | 2 +- - maven-surefire-report-plugin/pom.xml | 27 ++++++++++------ + maven-surefire-report-plugin/pom.xml | 31 +++++++++------- pom.xml | 1 - - surefire-api/pom.xml | 18 ++++++++--- + surefire-api/pom.xml | 18 ++++++--- .../maven/surefire/api/booter/Command.java | 2 +- .../api/filter/SpecificTestClassFilter.java | 2 +- .../api/report/CategorizedReportEntry.java | 2 +- .../report/LegacyPojoStackTraceWriter.java | 2 +- .../api/stream/AbstractStreamDecoder.java | 2 +- - .../surefire/api/testset/ResolvedTest.java | 14 ++++---- - .../api/testset/TestListResolver.java | 10 +++--- - .../api/util/DefaultDirectoryScanner.java | 4 +-- + .../surefire/api/testset/ResolvedTest.java | 14 +++---- + .../api/testset/TestListResolver.java | 10 ++--- + .../api/util/DefaultDirectoryScanner.java | 4 +- .../api/util/internal/ClassMethod.java | 2 +- - .../api/util/internal/ObjectUtils.java | 4 +-- - .../api/util/internal/ObjectUtilsTest.java | 4 +-- - surefire-booter/pom.xml | 28 +++++++++++++--- - .../maven/surefire/booter/CommandReader.java | 4 +-- + .../api/util/internal/ObjectUtils.java | 4 +- + .../api/util/internal/ObjectUtilsTest.java | 4 +- + surefire-booter/pom.xml | 28 +++++++++++--- + .../maven/surefire/booter/CommandReader.java | 4 +- .../maven/surefire/booter/ForkedBooter.java | 2 +- - .../maven/surefire/booter/PpidChecker.java | 10 +++--- + .../maven/surefire/booter/PpidChecker.java | 10 ++--- .../surefire/booter/ProcessCheckerType.java | 2 +- .../surefire/booter/PropertiesWrapper.java | 2 +- .../booter/SurefireBooterForkException.java | 2 +- - .../maven/surefire/booter/SystemUtils.java | 14 ++++---- + .../maven/surefire/booter/SystemUtils.java | 14 +++---- .../booter/stream/CommandDecoder.java | 2 +- .../surefire/booter/ForkedBooterMockTest.java | 2 +- .../booter/IsolatedClassLoaderTest.java | 2 +- .../surefire/booter/NewClassLoaderRunner.java | 2 +- - .../surefire/booter/PpidCheckerTest.java | 4 +-- - .../surefire/booter/SystemUtilsTest.java | 12 +++---- - surefire-extensions-api/pom.xml | 14 +++++--- + .../surefire/booter/PpidCheckerTest.java | 4 +- + .../surefire/booter/SystemUtilsTest.java | 12 +++--- + surefire-extensions-api/pom.xml | 14 ++++--- .../extensions/ConsoleOutputReporter.java | 2 +- .../extensions/StatelessReporter.java | 2 +- - .../extensions/util/CommandlineExecutor.java | 8 ++--- - .../extensions/CommandlineExecutorTest.java | 4 +-- - surefire-grouper/pom.xml | 4 +-- - surefire-providers/common-java5/pom.xml | 5 ++- - .../report/SmartStackTraceParser.java | 4 +-- - surefire-providers/common-junit4/pom.xml | 9 +++--- + .../extensions/util/CommandlineExecutor.java | 8 ++-- + .../extensions/CommandlineExecutorTest.java | 4 +- + surefire-grouper/pom.xml | 4 +- + surefire-its/pom.xml | 10 ----- + surefire-providers/common-java5/pom.xml | 5 +-- + .../report/SmartStackTraceParser.java | 4 +- + surefire-providers/common-junit4/pom.xml | 9 ++--- .../junit4/JUnit4RunListenerFactory.java | 2 +- - surefire-providers/common-junit48/pom.xml | 9 +++--- + surefire-providers/common-junit48/pom.xml | 9 ++--- .../common/junit48/FilterFactory.java | 2 +- .../common/junit48/FilterFactoryTest.java | 2 +- - .../surefire-junit-platform/pom.xml | 17 +++++++--- - .../junitplatform/JUnitPlatformProvider.java | 4 +-- + .../surefire-junit-platform/pom.xml | 17 +++++++-- + .../junitplatform/JUnitPlatformProvider.java | 4 +- .../junitplatform/RunListenerAdapter.java | 2 +- - surefire-providers/surefire-junit3/pom.xml | 11 +++---- - .../surefire/junit/JUnitTestSetTest.java | 4 +-- - surefire-providers/surefire-testng/pom.xml | 9 +++--- + surefire-providers/surefire-junit3/pom.xml | 11 +++--- + .../surefire/junit/JUnitTestSetTest.java | 4 +- + surefire-providers/surefire-testng/pom.xml | 9 ++--- .../testng/TestNGDirectoryTestSuite.java | 2 +- .../maven/surefire/testng/TestNGExecutor.java | 2 +- surefire-report-parser/pom.xml | 5 +++ - 89 files changed, 283 insertions(+), 225 deletions(-) + 90 files changed, 282 insertions(+), 258 deletions(-) diff --git a/maven-failsafe-plugin/pom.xml b/maven-failsafe-plugin/pom.xml -index cc4d7c1c5..64d7b29a1 100644 +index 0d371c294..4332be577 100644 --- a/maven-failsafe-plugin/pom.xml +++ b/maven-failsafe-plugin/pom.xml @@ -45,6 +45,14 @@ @@ -114,7 +115,7 @@ index cc4d7c1c5..64d7b29a1 100644 org.apache.maven.surefire surefire-api -@@ -60,11 +68,6 @@ +@@ -60,24 +68,11 @@ surefire-extensions-api ${project.version} @@ -126,6 +127,31 @@ index cc4d7c1c5..64d7b29a1 100644 org.apache.maven.surefire maven-surefire-common + ${project.version} + +- +- org.apache.maven.plugins +- maven-surefire-plugin +- ${project.version} +- site-source +- zip +- provided +- + + org.apache.maven + maven-plugin-api +@@ -108,11 +103,6 @@ + mockito-core + test + +- +- org.codehaus.plexus +- plexus-xml +- test +- + + + diff --git a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/VerifyMojo.java b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/VerifyMojo.java index cef6391ec..546d963e8 100644 --- a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/VerifyMojo.java @@ -141,7 +167,7 @@ index cef6391ec..546d963e8 100644 /** * Verify integration tests ran using Failsafe. diff --git a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/util/FailsafeSummaryXmlUtils.java b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/util/FailsafeSummaryXmlUtils.java -index ed39cc90a..8cdf31275 100644 +index fac986b39..bd50a01d2 100644 --- a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/util/FailsafeSummaryXmlUtils.java +++ b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/util/FailsafeSummaryXmlUtils.java @@ -39,9 +39,9 @@ @@ -158,7 +184,7 @@ index ed39cc90a..8cdf31275 100644 /** * @author Tibor Digana (tibor17) diff --git a/maven-surefire-common/pom.xml b/maven-surefire-common/pom.xml -index c14279b55..759766d67 100644 +index eb1d57549..547acb951 100644 --- a/maven-surefire-common/pom.xml +++ b/maven-surefire-common/pom.xml @@ -32,6 +32,28 @@ @@ -207,6 +233,18 @@ index c14279b55..759766d67 100644 com.google.code.findbugs jsr305 +@@ -154,11 +166,6 @@ + runtime + test + +- +- org.codehaus.plexus +- plexus-xml +- test +- + + commons-io + commons-io 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 67e0cb60f..3d082d6e8 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java @@ -284,7 +322,7 @@ index 89e6614f3..bffeb11af 100644 /** * All the parameters used to construct reporters diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java -index 03158be67..1756fe6f2 100644 +index 6285506c7..ab0628d9f 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java @@ -38,6 +38,7 @@ @@ -691,7 +729,7 @@ index 1af67c838..da890b8e5 100644 import static org.codehaus.plexus.languages.java.jpms.ModuleNameSource.MODULEDESCRIPTOR; import static org.mockito.ArgumentMatchers.any; diff --git a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/SurefireHelperTest.java b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/SurefireHelperTest.java -index 7e3a64a43..4f03966c9 100644 +index 88c609ea5..7b19ed64c 100644 --- a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/SurefireHelperTest.java +++ b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/SurefireHelperTest.java @@ -37,9 +37,9 @@ @@ -963,17 +1001,16 @@ index ca9382fb5..9f671e5be 100644 import static java.nio.charset.StandardCharsets.US_ASCII; import static org.apache.maven.surefire.api.report.RunMode.NORMAL_RUN; diff --git a/maven-surefire-report-plugin/pom.xml b/maven-surefire-report-plugin/pom.xml -index d709b6e5c..d96bc29c7 100644 +index 82a5f2a75..5dc8e20b3 100644 --- a/maven-surefire-report-plugin/pom.xml +++ b/maven-surefire-report-plugin/pom.xml -@@ -50,6 +50,24 @@ +@@ -50,6 +50,23 @@ + + org.hamcrest + hamcrest -+ 3.0 + test + + @@ -991,9 +1028,9 @@ index d709b6e5c..d96bc29c7 100644 org.apache.maven.surefire surefire-logger-api -@@ -116,10 +134,6 @@ +@@ -116,10 +133,6 @@ maven-reporting-impl - 4.0.0-M15 + 4.0.0 - - org.codehaus.plexus @@ -1002,7 +1039,7 @@ index d709b6e5c..d96bc29c7 100644 org.codehaus.plexus plexus-i18n -@@ -130,11 +144,6 @@ +@@ -130,16 +143,6 @@ plexus-interpolation 1.27 @@ -1010,12 +1047,17 @@ index d709b6e5c..d96bc29c7 100644 - org.fusesource.jansi - jansi - provided +- +- +- commons-io +- commons-io +- test - - commons-io - commons-io + org.apache.maven.plugin-testing + maven-plugin-testing-harness diff --git a/pom.xml b/pom.xml -index 75a61b38e..a185963ad 100644 +index 36fbdc5df..788342963 100644 --- a/pom.xml +++ b/pom.xml @@ -48,7 +48,6 @@ @@ -1027,7 +1069,7 @@ index 75a61b38e..a185963ad 100644 surefire-api surefire-extensions-api diff --git a/surefire-api/pom.xml b/surefire-api/pom.xml -index d302fb2b3..7aae337df 100644 +index 0d93447b4..ecb4484af 100644 --- a/surefire-api/pom.xml +++ b/surefire-api/pom.xml @@ -33,14 +33,22 @@ @@ -1237,7 +1279,7 @@ index 9e1640b6a..1717b05c0 100644 /** diff --git a/surefire-booter/pom.xml b/surefire-booter/pom.xml -index 85c385adc..4eca6e1fc 100644 +index 4a5b67947..c53610aa9 100644 --- a/surefire-booter/pom.xml +++ b/surefire-booter/pom.xml @@ -33,18 +33,36 @@ @@ -1524,7 +1566,7 @@ index 6752ba75b..9e2277916 100644 import static org.junit.Assume.assumeTrue; import static org.mockito.Matchers.any; diff --git a/surefire-extensions-api/pom.xml b/surefire-extensions-api/pom.xml -index 3e3bf6694..20122bfc0 100644 +index a76ec0378..3796e3691 100644 --- a/surefire-extensions-api/pom.xml +++ b/surefire-extensions-api/pom.xml @@ -30,6 +30,15 @@ @@ -1626,7 +1668,7 @@ index 1443947df..89960a02a 100644 import static org.assertj.core.util.Files.delete; import static org.mockito.ArgumentMatchers.contains; diff --git a/surefire-grouper/pom.xml b/surefire-grouper/pom.xml -index a311b0e9c..2b0c3119e 100644 +index d54fa0173..52d556dd1 100644 --- a/surefire-grouper/pom.xml +++ b/surefire-grouper/pom.xml @@ -34,9 +34,9 @@ @@ -1641,8 +1683,34 @@ index a311b0e9c..2b0c3119e 100644 net.java.dev.javacc +diff --git a/surefire-its/pom.xml b/surefire-its/pom.xml +index ffc745302..fb062b322 100644 +--- a/surefire-its/pom.xml ++++ b/surefire-its/pom.xml +@@ -58,21 +58,11 @@ + hamcrest + test + +- +- org.apache.maven +- maven-settings +- test +- + + org.htmlunit + htmlunit + test + +- +- org.apache.maven +- maven-artifact +- test +- + + org.apache.maven.shared + maven-shared-utils diff --git a/surefire-providers/common-java5/pom.xml b/surefire-providers/common-java5/pom.xml -index ce85bc9ff..dc4bb4fbe 100644 +index 93534cfe5..55f2d6b75 100644 --- a/surefire-providers/common-java5/pom.xml +++ b/surefire-providers/common-java5/pom.xml @@ -33,9 +33,8 @@ @@ -1673,7 +1741,7 @@ index e5c66dde8..171d267f1 100644 /** * @author Kristian Rosenvold diff --git a/surefire-providers/common-junit4/pom.xml b/surefire-providers/common-junit4/pom.xml -index 0fa2fadbd..044fb089c 100644 +index 848fbd45e..1fe45e32f 100644 --- a/surefire-providers/common-junit4/pom.xml +++ b/surefire-providers/common-junit4/pom.xml @@ -32,6 +32,10 @@ @@ -1713,7 +1781,7 @@ index b0a74a4f7..26be9beac 100644 /** * @author Kristian Rosenvold diff --git a/surefire-providers/common-junit48/pom.xml b/surefire-providers/common-junit48/pom.xml -index 2b95ce3c6..d91532b62 100644 +index bac3c870d..e53e9e9ef 100644 --- a/surefire-providers/common-junit48/pom.xml +++ b/surefire-providers/common-junit48/pom.xml @@ -32,17 +32,16 @@ @@ -1770,7 +1838,7 @@ index ddb772ae6..679ef712a 100644 import org.junit.runner.Description; import org.junit.runner.JUnitCore; diff --git a/surefire-providers/surefire-junit-platform/pom.xml b/surefire-providers/surefire-junit-platform/pom.xml -index 8d806b898..176e20374 100644 +index b850fc855..b859011d6 100644 --- a/surefire-providers/surefire-junit-platform/pom.xml +++ b/surefire-providers/surefire-junit-platform/pom.xml @@ -85,13 +85,22 @@ @@ -1837,7 +1905,7 @@ index 5e8255490..684a28f3c 100644 import static org.junit.platform.engine.discovery.DiscoverySelectors.selectUniqueId; import static org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder.request; diff --git a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java -index 8c274fd1c..9a1ff487e 100644 +index 7ae8cc79d..094aaafe8 100644 --- a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java +++ b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java @@ -49,8 +49,8 @@ @@ -1851,7 +1919,7 @@ index 8c274fd1c..9a1ff487e 100644 /** diff --git a/surefire-providers/surefire-junit3/pom.xml b/surefire-providers/surefire-junit3/pom.xml -index b1886524e..8b1df358d 100644 +index 46ff2001d..b1a09e407 100644 --- a/surefire-providers/surefire-junit3/pom.xml +++ b/surefire-providers/surefire-junit3/pom.xml @@ -32,6 +32,11 @@ @@ -1895,7 +1963,7 @@ index 35979a1ec..1824cb983 100644 /** * diff --git a/surefire-providers/surefire-testng/pom.xml b/surefire-providers/surefire-testng/pom.xml -index 33b1ef76f..39c8e9052 100644 +index 72ac6bad5..e186ac796 100644 --- a/surefire-providers/surefire-testng/pom.xml +++ b/surefire-providers/surefire-testng/pom.xml @@ -32,17 +32,16 @@ @@ -1952,7 +2020,7 @@ index 96e7170b9..e3662f43e 100644 import org.apache.maven.surefire.testng.utils.FailFastEventsSingleton; import org.apache.maven.surefire.testng.utils.FailFastListener; diff --git a/surefire-report-parser/pom.xml b/surefire-report-parser/pom.xml -index e616992ff..b29a7c173 100644 +index 0fb0f1bac..7b2f14a02 100644 --- a/surefire-report-parser/pom.xml +++ b/surefire-report-parser/pom.xml @@ -32,6 +32,11 @@ @@ -1968,5 +2036,5 @@ index e616992ff..b29a7c173 100644 org.apache.maven.surefire surefire-logger-api -- -2.46.1 +2.47.0 diff --git a/_service b/_service index a371164..b1b1e47 100644 --- a/_service +++ b/_service @@ -2,7 +2,7 @@ git https://github.com/apache/maven-surefire.git - surefire-3.5.1 + surefire-3.5.2 surefire-* @PARENT_TAG@ surefire-(.*) diff --git a/maven-surefire-3.5.1.tar.xz b/maven-surefire-3.5.1.tar.xz deleted file mode 100644 index ca06f5c..0000000 --- a/maven-surefire-3.5.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:842f80efec4d3e2b65b3e43c910a002b3873279d41d6dce1fec8afa738c9f8ad -size 911104 diff --git a/maven-surefire-3.5.2.tar.xz b/maven-surefire-3.5.2.tar.xz new file mode 100644 index 0000000..e76ccb9 --- /dev/null +++ b/maven-surefire-3.5.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e99aa55c0a99f26780d11e0e13b5b417adca7c43f93f427a623e04ea0bf8fbc +size 911400 diff --git a/maven-surefire-bootstrap-resources.patch b/maven-surefire-bootstrap-resources.patch index 64de1ce..0f80a1e 100644 --- a/maven-surefire-bootstrap-resources.patch +++ b/maven-surefire-bootstrap-resources.patch @@ -1,35 +1,7 @@ -From 2384dbdd33075fbed6799b8e9e8ca59487e786ec Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Fridrich=20=C5=A0trba?= -Date: Tue, 1 Oct 2024 07:32:40 +0200 -Subject: [PATCH] bootstrap resources - ---- - .../maven-failsafe-plugin/plugin-help.xml | 1084 ++++++++++++++ - .../META-INF/maven/plugin.xml | 1308 +++++++++++++++++ - .../maven_failsafe_plugin/HelpMojo.java | 448 ++++++ - .../maven-surefire-plugin/plugin-help.xml | 943 ++++++++++++ - .../META-INF/maven/plugin.xml | 1145 +++++++++++++++ - .../maven_surefire_plugin/HelpMojo.java | 448 ++++++ - .../plugin-help.xml | 496 +++++++ - .../META-INF/maven/plugin.xml | 958 ++++++++++++ - .../HelpMojo.java | 448 ++++++ - 9 files changed, 7278 insertions(+) - create mode 100644 maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-failsafe-plugin/plugin-help.xml - create mode 100644 maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml - create mode 100644 maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/maven_failsafe_plugin/HelpMojo.java - create mode 100644 maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-plugin/plugin-help.xml - create mode 100644 maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml - create mode 100644 maven-surefire-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_plugin/HelpMojo.java - create mode 100644 maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-report-plugin/plugin-help.xml - create mode 100644 maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml - create mode 100644 maven-surefire-report-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_report_plugin/HelpMojo.java - -diff --git a/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-failsafe-plugin/plugin-help.xml b/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-failsafe-plugin/plugin-help.xml -new file mode 100644 -index 000000000..3b4bb7649 ---- /dev/null -+++ b/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-failsafe-plugin/plugin-help.xml -@@ -0,0 +1,1084 @@ +diff -urEbwBN a/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-failsafe-plugin/plugin-help.xml b/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-failsafe-plugin/plugin-help.xml +--- a/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-failsafe-plugin/plugin-help.xml 1970-01-01 01:00:00.000000000 +0100 ++++ b/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-failsafe-plugin/plugin-help.xml 2024-11-04 10:43:47.030374365 +0100 +@@ -0,0 +1,953 @@ + + + @@ -114,47 +86,30 @@ index 000000000..3b4bb7649 + + additionalClasspathDependencies + java.util.List<org.apache.maven.model.Dependency> -+ 3.2 + false + true -+ Additional Maven dependencies to be added to the test classpath at runtime. Each element supports the parametrization like documented in POM Reference: Dependencies <https://maven.apache.org/pom.html#dependencies>. -+Those dependencies are automatically collected (i.e. have their full dependency tree calculated) and then all underlying artifacts are resolved from the repository (including their transitive dependencies). Afterwards the resolved artifacts are filtered to only contain compile and runtime scoped ones and appended to the test classpath at runtime (after the ones from additionalClasspathElements). -+ -+The following differences to regular project dependency resolving apply: -+ -+* The dependency management from the project is not taken into account. -+* Conflicts between the different items and the project dependencies are not resolved. -+* Only external dependencies (outside the current Maven reactor) are supported. ++ + + + additionalClasspathElements + java.lang.String[] -+ 2.4 + false + true -+ Additional elements to be appended to the test classpath at runtime. Each element must be a file system path to a JAR file or a directory containing classes. No wildcards are allowed here. ++ + + + argLine + java.lang.String -+ 2.1 + false + true -+ Arbitrary JVM options to set on the command line. Only effective for forked executions. -+ -+Since the Version 2.17 using an alternate syntax for argLine, @{...} allows late replacement of properties when the plugin is executed, so properties that have been modified by other plugins will be picked up correctly. See the Frequently Asked Questions page with more details: -+http://maven.apache.org/surefire/maven-surefire-plugin/faq.html <http://maven.apache.org/surefire/maven-surefire-plugin/faq.html> -+http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html <http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html> -+See also: forkCount ++ + + + childDelegation + boolean -+ 2.1 + false + true -+ When false it makes tests run using the standard classloader delegation instead of the default Maven isolated classloader. Only used when forking (forkCount is greater than zero). -+Setting it to false helps with some problems caused by conflicts between xml parsers in the classpath and the Java 5 provider parser. ++ + + + classesDirectory @@ -166,27 +121,16 @@ index 000000000..3b4bb7649 + + classpathDependencyExcludes + java.lang.String[] -+ 2.6 + false + true -+ List of dependencies to exclude from the test classpath at runtime. Each item is passed as pattern to org.apache.maven.shared.artifact.filter.PatternIncludesArtifactFilter. The pattern is matched against the following artifact ids: -+* groupId:artifactId (Short ID) -+* groupId:artifactId:type:classifier (Dependency Conflict ID) -+* groupId:artifactId:type:classifier:version (Full ID) The matching algorithm is described in detail in Advanced Artifact-Matching <https://maven.apache.org/plugins/maven-assembly-plugin/advanced-descriptor-topics.html#advanced-artifact-matching-in-includes-and-excludes> for the maven-assembly-plugin. This parameter behaves the same as the excludes pattern described there. The dependency matching is applied to the project dependency IDs (including transitive ones) after resolving, i.e. excluding one dependency will not exclude its transitive dependencies! ++ + + + classpathDependencyScopeExclude + java.lang.String -+ 2.6 + false + true -+ A dependency scope to exclude from the test classpath at runtime. The scope should be one of the scopes defined by org.apache.maven.artifact.Artifact. This includes the following: -+ -+* compile - system, provided, compile -+* runtime - compile, runtime -+* compile+runtime - system, provided, compile, runtime -+* runtime+system - system, compile, runtime -+* test - system, provided, compile, runtime, test ++ + + + consoleOutputReporter @@ -206,51 +150,31 @@ index 000000000..3b4bb7649 + + dependenciesToScan + java.lang.String[] -+ 2.15 + false + true -+ List of dependencies to scan for test classes to include in the test run. The child elements of this element must be <dependency> elements, and the contents of each of these elements must be a string which follows the general form: -+groupId[:artifactId[:type[:classifier][:version]]] -+ -+The wildcard character * can be used within the sub parts of those composite identifiers to do glob-like pattern matching. The classifier may be omitted when matching dependencies without a classifier. -+ -+Examples: -+ -+* group or, equivalently, group:* -+* g*p:*rtifac* -+* group:*:jar -+* group:artifact:*:1.0.0 (no classifier) -+* group:*:test-jar:tests -+* *:artifact:*:*:1.0.0 -+Since version 2.22.0 you can scan for test classes from a project dependency of your multi-module project. -+ -+In versions before 3.0.0-M4, only groupId:artifactId is supported. -+ ++ + + + disableXmlReport -+ boolean -+ 2.2 ++ java.lang.Boolean + No reason given + false + true -+ Flag to disable the generation of report files in xml format. Deprecated since 3.0.0-M4. Instead use disable within statelessTestsetReporter since of 3.0.0-M6. ++ + + + enableAssertions + boolean -+ 2.3.1 + false + true -+ By default, Surefire enables JVM assertions for the execution of your test cases. To disable the assertions, set this flag to "false". ++ + + + enableOutErrElements + boolean -+ 3.3.1 + false + true -+ Flag for including/excluding <system-out /> and <system-err /> elements for successfully passed tests in XML reports. Note that the default value may change to false is a future version. ++ + + + enableProcessChecker @@ -258,24 +182,23 @@ index 000000000..3b4bb7649 + 3.0.0-M4 + false + true -+ Since 3.0.0-M4 the process checkers are disabled. You can enable them namely by setting ping and native or all in this parameter. -+The checker is useful in situations when you kill the build on a CI system and you want the Surefire forked JVM to kill the tests asap and free all handlers on the file system been previously used by the JVM and by the tests. -+The ping should be safely used together with ZGC or Shenandoah Garbage Collector. Due to the ping relies on timing of the PING (triggered every 30 seconds), slow GCs may pause the timers and pretend that the parent process of the forked JVM does not exist. -+The native is very fast checker. It is useful mechanism on Unix based systems, Linux distributions and Alpine/BusyBox Linux. See the JIRA SUREFIRE-1631 <https://issues.apache.org/jira/browse/SUREFIRE-1631> for Windows issues. -+Another useful configuration parameter is forkedProcessTimeoutInSeconds. ++ Since 3.0.0-M4 the process checkers are disabled. You can enable them namely by setting ping and native or all in this parameter. ++The checker is useful in situations when you kill the build on a CI system and you want the Surefire forked JVM to kill the tests asap and free all handlers on the file system been previously used by the JVM and by the tests. ++The ping should be safely used together with ZGC or Shenandoah Garbage Collector. Due to the ping relies on timing of the PING (triggered every 30 seconds), slow GCs may pause the timers and pretend that the parent process of the forked JVM does not exist. ++The native is very fast checker. It is useful mechanism on Unix based systems, Linux distributions and Alpine/BusyBox Linux. See the JIRA SUREFIRE-1631 <https://issues.apache.org/jira/browse/SUREFIRE-1631> for Windows issues. ++Another useful configuration parameter is forkedProcessTimeoutInSeconds. +See the Frequently Asked Questions page with more details: -+http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm> -+http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm> -+Example of use: ++http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm> ++http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm> ++Example of use: +mvn test -Dfailsafe.enableProcessChecker=all + + + enablePropertiesElement + boolean -+ 3.3.1 + false + true -+ Flag for including/excluding <properties /> element for successfully passed tests in XML reports. ++ + + + encoding @@ -288,10 +211,9 @@ index 000000000..3b4bb7649 + + environmentVariables + java.util.Map<java.lang.String, java.lang.String> -+ 2.1.3 + false + true -+ Additional environment variables to set on the command line. ++ + + + excludeJUnit5Engines @@ -307,32 +229,28 @@ index 000000000..3b4bb7649 + 3.0.0-M4 + false + true -+ You can selectively exclude individual environment variables by enumerating their keys. -+The environment is a system-dependent mapping from keys to values which is inherited from the Maven process to the forked Surefire processes. The keys must literally (case sensitive) match in order to exclude their environment variable. -+Example to exclude three environment variables: ++ You can selectively exclude individual environment variables by enumerating their keys. ++The environment is a system-dependent mapping from keys to values which is inherited from the Maven process to the forked Surefire processes. The keys must literally (case sensitive) match in order to exclude their environment variable. ++Example to exclude three environment variables: +mvn test -Dfailsafe.excludedEnvironmentVariables=ACME1,ACME2,ACME3 + + + excludedGroups + java.lang.String -+ 2.2 + false + true -+ (TestNG/JUnit47 provider with JUnit4.8+ only and JUnit5+ provider since 2.22.0) Excluded groups/categories/tags. Any methods/classes/etc with one of the groups/categories/tags specified in this list will specifically not be run. -+For JUnit4, this parameter forces the use of the 4.7 provider. For JUnit5, this parameter forces the use of the JUnit platform provider. -+This parameter is ignored if the suiteXmlFiles parameter is specified. -+Since version 2.18.1 and JUnit 4.12, the @Category annotation type is automatically inherited from superclasses, see @java.lang.annotation.Inherited. Make sure that test class inheritance still makes sense together with @Category annotation of the JUnit 4.12 or higher appeared in superclass. ++ + + + excludes + java.util.List<java.lang.String> + false + true -+ A list of <exclude> elements specifying the tests (by pattern) that should be excluded in testing. When not specified and when the test parameter is not specified, the default excludes will be -+<excludes> <exclude>**/*$*</exclude> </excludes> (which excludes all inner classes). -+This parameter is ignored if the TestNG suiteXmlFiles parameter is specified. ++ A list of <exclude> elements specifying the tests (by pattern) that should be excluded in testing. When not specified and when the test parameter is not specified, the default excludes will be ++<excludes> <exclude>**/*$*</exclude> </excludes> (which excludes all inner classes). ++This parameter is ignored if the TestNG suiteXmlFiles parameter is specified. +Each exclude item may also contain a comma-separated sub-list of items, which will be treated as multiple <exclude> entries. -+Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <exclude>%regex[pkg.*Slow.*.class], Unstable*</exclude> ++Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <exclude>%regex[pkg.*Slow.*.class], Unstable*</exclude> +Notice that these values are relative to the directory containing generated test classes of the project being tested. This directory is declared by the parameter testClassesDirectory which defaults to the POM property ${project.build.testOutputDirectory}, typically src/test/java unless overridden. + + @@ -341,7 +259,7 @@ index 000000000..3b4bb7649 + 2.13 + false + true -+ A file containing exclude patterns, each in a next line. Blank lines, or lines starting with # are ignored. If excludes are also specified, these patterns are appended. Example with path, simple and regex excludes: */it/* **/DontRunIT.* %regex[.*IT.*|.*Not.*] ++ A file containing exclude patterns, each in a next line. Blank lines, or lines starting with # are ignored. If excludes are also specified, these patterns are appended. Example with path, simple and regex excludes: */it/* **/DontRunIT.* %regex[.*IT.*|.*Not.*] +Since 3.0.0-M6, method filtering support is provided in the exclusions file as well, example: pkg.SomeIT#testMethod + + @@ -364,22 +282,16 @@ index 000000000..3b4bb7649 + + failIfNoTests + boolean -+ 2.4 + false + true -+ Set this to "true" to cause a failure if there are no tests to run. Defaults to "false". ++ + + + forkCount + java.lang.String -+ 2.14 + false + true -+ Option to specify the number of VMs to fork in parallel in order to execute the tests. When terminated with "C", the number part is multiplied with the number of CPU cores. Floating point value are only accepted together with "C". If set to "0", no VM is forked and all tests are executed within the main process. -+ -+Example values: "1.5C", "4" -+ -+The system properties and the argLine of the forked processes may contain the place holder string ${surefire.forkNumber}, which is replaced with a fixed number for each of the parallel forks, ranging from 1 to the effective value of forkCount times the maximum number of parallel Surefire executions in maven parallel builds, i.e. the effective value of the -T command line argument of maven core. ++ + + + forkNode @@ -387,7 +299,7 @@ index 000000000..3b4bb7649 + 3.0.0-M5 + false + true -+ This parameter configures the forked node. Currently, you can select the communication protocol, i.e. process pipes or TCP/IP sockets. The plugin uses process pipes by default which will be turned to TCP/IP in the version 3.0.0. Alternatively, you can implement your own factory and SPI. ++ This parameter configures the forked node. Currently, you can select the communication protocol, i.e. process pipes or TCP/IP sockets. The plugin uses process pipes by default which will be turned to TCP/IP in the version 3.0.0. Alternatively, you can implement your own factory and SPI. +See the documentation for more details: +https://maven.apache.org/plugins/maven-surefire-plugin/examples/process-communication.html <https://maven.apache.org/plugins/maven-surefire-plugin/examples/process-communication.html> + @@ -410,13 +322,9 @@ index 000000000..3b4bb7649 + + groups + java.lang.String -+ 2.2 + false + true -+ (TestNG/JUnit47 provider with JUnit4.8+ only and JUnit5+ provider since 2.22.0) Groups/categories/tags for this test. Only classes/methods/etc decorated with one of the groups/categories/tags specified here will be included in test run, if specified. -+For JUnit4 tests, this parameter forces the use of the 4.7 provider. For JUnit5 tests, this parameter forces the use of the JUnit platform provider. -+This parameter is ignored if the suiteXmlFiles parameter is specified. -+Since version 2.18.1 and JUnit 4.12, the @Category annotation type is automatically inherited from superclasses, see @java.lang.annotation.Inherited. Make sure that test class inheritance still makes sense together with @Category annotation of the JUnit 4.12 or higher appeared in superclass. ++ + + + includeJUnit5Engines @@ -431,9 +339,9 @@ index 000000000..3b4bb7649 + java.util.List<java.lang.String> + false + true -+ A list of <include> elements specifying the test filter (by pattern) of tests which should be included in testing. If it is not specified and the test parameter is unspecified as well, the default includes is <includes> <include>**/IT*.java</include> <include>**/*IT.java</include> <include>**/*ITCase.java</include> </includes> ++ A list of <include> elements specifying the test filter (by pattern) of tests which should be included in testing. If it is not specified and the test parameter is unspecified as well, the default includes is <includes> <include>**/IT*.java</include> <include>**/*IT.java</include> <include>**/*ITCase.java</include> </includes> +Each include item may also contain a comma-separated sublist of items, which will be treated as multiple <include> entries. -+Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <include>%regex[.*[Cat|Dog].*], Basic????, !Unstable*</include> <include>%regex[.*[Cat|Dog].*], !%regex[pkg.*Slow.*.class], pkg/**/*Fast*.java</include> ++Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <include>%regex[.*[Cat|Dog].*], Basic????, !Unstable*</include> <include>%regex[.*[Cat|Dog].*], !%regex[pkg.*Slow.*.class], pkg/**/*Fast*.java</include> +This parameter is ignored if the TestNG suiteXmlFiles parameter is specified. + +Notice that these values are relative to the directory containing generated test classes of the project being tested. This directory is declared by the parameter testClassesDirectory which defaults to the POM property ${project.build.testOutputDirectory}, typically src/test/java unless overridden. @@ -444,68 +352,50 @@ index 000000000..3b4bb7649 + 2.13 + false + true -+ A file containing include patterns, each in a next line. Blank lines, or lines starting with # are ignored. If includes are also specified, these patterns are appended. Example with path, simple and regex includes: */it/* **/NotIncludedByDefault.java %regex[.*IT.*|.*Not.*] ++ A file containing include patterns, each in a next line. Blank lines, or lines starting with # are ignored. If includes are also specified, these patterns are appended. Example with path, simple and regex includes: */it/* **/NotIncludedByDefault.java %regex[.*IT.*|.*Not.*] +Since 3.0.0-M6, method filtering support is provided in the inclusions file as well, example: pkg.SomeIT#testMethod + + + jdkToolchain + java.util.Map<java.lang.String, java.lang.String> -+ 3.0.0-M5 and Maven 3.3.x + false + true -+ -+Allow for configuration of the test jvm via maven toolchains. This permits a configuration where the project is built with one jvm and tested with another. This is similar to jvm, but avoids hardcoding paths. The two parameters are mutually exclusive (jvm wins) -+ -+Examples: -+(see Guide to Toolchains <https://maven.apache.org/guides/mini/guide-using-toolchains.html> for more info) <configuration> ... <jdkToolchain> <version>1.11</version> </jdkToolchain> </configuration> <configuration> ... <jdkToolchain> <version>1.8</version> <vendor>zulu</vendor> </jdkToolchain> </configuration> ++ + + + junitArtifactName + java.lang.String -+ 2.3.1 + false + true -+ Allows you to specify the name of the JUnit artifact. If not set, junit:junit will be used. ++ + + + jvm + java.lang.String -+ 2.1 + false + true -+ Option to specify the jvm (or path to the java executable) to use with the forking options. For the default, the jvm will be a new instance of the same VM as the one used to run Maven. JVM settings are not inherited from MAVEN_OPTS. ++ + + + objectFactory + java.lang.String -+ 2.5 + false + true -+ (TestNG only) Define the factory class used to create all test instances. ++ + + + parallel + java.lang.String -+ 2.2 + false + true -+ (TestNG provider) When you use the parameter parallel, TestNG will try to run all your test methods in separate threads, except for methods that depend on each other, which will be run in the same thread in order to respect their order of execution. Supports two values: classes or methods. -+(JUnit 4.7 provider) Supports values classes, methods, both to run in separate threads been controlled by threadCount. -+ -+Since version 2.16 (JUnit 4.7 provider), the value both is DEPRECATED. Use classesAndMethods instead. -+ -+Since version 2.16 (JUnit 4.7 provider), additional vales are available: -+suites, suitesAndClasses, suitesAndMethods, classesAndMethods, all. -+By default, Surefire does not execute tests in parallel. You can set the parameter parallel to none to explicitly disable parallel execution (e.g. when disabling parallel execution in special Maven profiles when executing coverage analysis). ++ + + + parallelOptimized + boolean -+ 2.17 + false + true -+ (JUnit 4.7 / provider only) The thread counts do not exceed the number of parallel suite, class runners and average number of methods per class if set to true. -+True by default. ++ + + + parallelTestsTimeoutForcedInSeconds @@ -513,7 +403,7 @@ index 000000000..3b4bb7649 + 2.16 + false + true -+ Stop executing queued parallel JUnit tests and interrupt currently running tests after a certain number of seconds. ++ Stop executing queued parallel JUnit tests and interrupt currently running tests after a certain number of seconds. +Example values: "3.5", "4" + +If set to 0, wait forever, never timing out. Makes sense with specified parallel different from "none". @@ -524,7 +414,7 @@ index 000000000..3b4bb7649 + 2.16 + false + true -+ Stop executing queued parallel JUnit tests after a certain number of seconds. ++ Stop executing queued parallel JUnit tests after a certain number of seconds. +Example values: "3.5", "4" + +If set to 0, wait forever, never timing out. Makes sense with specified parallel different from "none". @@ -532,10 +422,9 @@ index 000000000..3b4bb7649 + + perCoreThreadCount + boolean -+ 2.5 + false + true -+ (JUnit 4.7 provider) Indicates that threadCount, threadCountSuites, threadCountClasses, threadCountMethods are per cpu core. ++ + + + printSummary @@ -547,30 +436,23 @@ index 000000000..3b4bb7649 + + promoteUserPropertiesToSystemProperties + boolean -+ 3.4.0 + false + true -+ If set to true will also pass all user properties exposed via org.apache.maven.execution.MavenSession.getUserProperties() as system properties to a provider. Those always take precedence over same named system properties set via any other means. -+See also: systemPropertyVariables ++ + + + properties + java.util.Properties -+ 2.4 + false + true -+ List of properties for configuring the testing provider. This is the preferred method of configuring TestNG and JUnit platform providers. -+ -+JUnit platform properties may be defined in a configurationParameters element: <properties> <configurationParameters> junit.jupiter.execution.parallel.enabled = true junit.jupiter.execution.parallel.mode.default = concurrent </configurationParameters> </properties> -+TestNG properties may be defined as distinct element blocks: <properties> <property> <name>parallel</name> <value>methods</value> </property> </properties> ++ + + + redirectTestOutputToFile + boolean -+ 2.3 + false + true -+ Set this to "true" to redirect the unit test standard output to a file (found in reportsDirectory/testName-output.txt). ++ + + + reportFormat @@ -584,7 +466,7 @@ index 000000000..3b4bb7649 + java.lang.String + false + true -+ Add custom text into report filename: TEST-testClassName-reportNameSuffix.xml, testClassName-reportNameSuffix.txt and testClassName-reportNameSuffix-output.txt. File TEST-testClassName-reportNameSuffix.xml has changed attributes 'testsuite'--'name' and 'testcase'--'classname' - reportNameSuffix is added to the attribute value. ++ + + + reportsDirectory @@ -603,10 +485,9 @@ index 000000000..3b4bb7649 + + reuseForks + boolean -+ 2.13 + false + true -+ Indicates if forked VMs can be reused. If set to "false", a new VM is forked for each test class to be executed. If set to "true", up to forkCount VMs will be forked and then reused to execute all tests. ++ + + + runOrder @@ -614,13 +495,13 @@ index 000000000..3b4bb7649 + 2.7 + false + true -+ Defines the order the tests will be run in. Supported values are alphabetical, reversealphabetical, random, hourly (alphabetical on even hours, reverse alphabetical on odd hours), failedfirst, balanced and filesystem. ++ Defines the order the tests will be run in. Supported values are alphabetical, reversealphabetical, random, hourly (alphabetical on even hours, reverse alphabetical on odd hours), failedfirst, balanced and filesystem. + -+Odd/Even for hourly is determined at the time the of scanning the classpath, meaning it could change during a multi-module build. ++Odd/Even for hourly is determined at the time the of scanning the classpath, meaning it could change during a multi-module build. + -+Failed first will run tests that failed on previous run first, as well as new tests for this run. ++Failed first will run tests that failed on previous run first, as well as new tests for this run. + -+Balanced is only relevant with parallel=classes, and will try to optimize the run-order of the tests reducing the overall execution time. Initially a statistics file is created and every next test run will reorder classes. ++Balanced is only relevant with parallel=classes, and will try to optimize the run-order of the tests reducing the overall execution time. Initially a statistics file is created and every next test run will reorder classes. + +Note that the statistics are stored in a file named .surefire-XXXXXXXXX beside pom.xml and should not be checked into version control. The "XXXXX" is the SHA1 checksum of the entire surefire configuration, so different configurations will have different statistics files, meaning if you change any configuration settings you will re-run once before new statistics data can be established. + @@ -630,9 +511,9 @@ index 000000000..3b4bb7649 + 3.0.0-M6 + false + true -+ Sets the random seed that will be used to order the tests if failsafe.runOrder is set to random. ++ Sets the random seed that will be used to order the tests if failsafe.runOrder is set to random. + -+If no seeds are set and failsafe.runOrder is set to random, then the seed used will be outputted (search for "To reproduce ordering use flag -Dfailsafe.runOrder.random.seed"). ++If no seeds are set and failsafe.runOrder is set to random, then the seed used will be outputted (search for "To reproduce ordering use flag -Dfailsafe.runOrder.random.seed"). + +To deterministically reproduce any random test order that was run before, simply set the seed to be the same value. + @@ -642,11 +523,11 @@ index 000000000..3b4bb7649 + 2.19 + false + true -+ After the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every forked JVM. -+The value is set to (shutdown=exit) by default (changed in version 3.0.0-M4). -+The parameter can be configured with other two values testset and kill. -+With(shutdown=testset) the test set may still continue to run in forked JVM. -+Using exit forked JVM executes System.exit(1) after the plugin process has received SIGTERM signal. ++ After the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every forked JVM. ++The value is set to (shutdown=exit) by default (changed in version 3.0.0-M4). ++The parameter can be configured with other two values testset and kill. ++With(shutdown=testset) the test set may still continue to run in forked JVM. ++Using exit forked JVM executes System.exit(1) after the plugin process has received SIGTERM signal. +Using kill the JVM executes Runtime.halt(1) and kills itself. + + @@ -654,7 +535,7 @@ index 000000000..3b4bb7649 + boolean + false + true -+ Set this to "true" to bypass unit tests entirely. Its use is NOT RECOMMENDED, especially if you enable it using the "maven.test.skip" property, because maven.test.skip disables both running the tests and compiling the tests. Consider using the skipTests parameter instead. ++ + + + skipAfterFailureCount @@ -670,11 +551,10 @@ index 000000000..3b4bb7649 + + skipExec + boolean -+ 2.3 -+ Use skipTests instead. ++ No reason given + false + true -+ This old parameter is just like skipTests, but bound to the old property "maven.test.skip.exec". ++ + + + skipITs @@ -687,11 +567,9 @@ index 000000000..3b4bb7649 + + skipTests + boolean -+ 2.4 + false + true -+ Set this to "true" to skip running tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion. -+Failsafe plugin deprecated the parameter skipTests and the parameter will be removed in Failsafe 3.0.0 as it is a source of conflicts between Failsafe and Surefire plugin. ++ + + + statelessTestsetInfoReporter @@ -705,7 +583,7 @@ index 000000000..3b4bb7649 + org.apache.maven.plugin.surefire.extensions.SurefireStatelessReporter + false + true -+ Note: use the legacy system property disableXmlReport set to true to disable the report. ++ + + + suiteXmlFiles @@ -726,11 +604,10 @@ index 000000000..3b4bb7649 + + systemProperties + java.util.Properties -+ Use systemPropertyVariables instead. ++ No reason given + false + true -+ List of System properties to pass to a provider. -+See also: systemPropertyVariables for how the effective provider properties are calculated ++ + + + systemPropertiesFile @@ -743,43 +620,27 @@ index 000000000..3b4bb7649 + + systemPropertyVariables + java.util.Map<java.lang.String, java.lang.String> -+ 2.5 + false + true -+ List of System properties to pass to a provider. The effective system properties given to a provider are contributed from several sources: -+* properties set via argLine with -D (only for forked executions) -+* systemProperties -+* getSystemPropertiesFile() (set via parameter systemPropertiesFile on some goals) -+* systemPropertyVariables -+* User properties from org.apache.maven.execution.MavenSession.getUserProperties(), usually set via CLI options given with -D on the current Maven process (only used as source if promoteUserPropertiesToSystemProperties is true) Later sources may overwrite same named properties from earlier sources, that means for example that one cannot overwrite user properties with either systemProperties, getSystemPropertiesFile() or systemPropertyVariables. -+Certain properties may only be overwritten via argLine (applicable only for forked executions) because their values are cached and only evaluated at the start of the JRE. Those include: -+ -+* java.library.path -+* file.encoding -+* jdk.map.althashing.threshold -+* line.separator -+See also: systemProperties ++ + + + tempDir + java.lang.String -+ 2.20 + false + true -+ Relative path to temporary-surefire-boot directory containing internal Surefire temporary files. -+The temporary-surefire-boot directory is project.build.directory on most platforms or system default temporary-directory specified by the system property java.io.tmpdir on Windows (see SUREFIRE-1400 <https://issues.apache.org/jira/browse/SUREFIRE-1400>). -+It is deleted after the test set has completed. ++ + + + test + java.lang.String + false + true -+ Specify this parameter to run individual tests by file name, overriding parameter includes and excludes. Each pattern you specify here will be used to create an include pattern formatted like **/${it.test}.java, so you can just type -Dit.test=MyIT to run a single test file called "foo/MyIT.java". The test patterns prefixed with a ! will be excluded. -+This parameter overrides the parameter includes and excludes, and the TestNG parameter suiteXmlFiles. -+Since 2.7.3 You can execute a limited number of methods in the test with adding #myMethod or #my*ethod. E.g. type -Dit.test=MyIT#myMethod supported for junit 4.x and TestNg. -+Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): "-Dit.test=???IT, !Unstable*, pkg/**/Ci*leIT.java, *IT#test*One+testTwo?????, #fast*+slowTest" or e.g. -+"-Dit.test=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyIT.class#one.*|two.*], %regex[#fast.*|slow.*]" ++ Specify this parameter to run individual tests by file name, overriding parameter includes and excludes. Each pattern you specify here will be used to create an include pattern formatted like **/${it.test}.java, so you can just type -Dit.test=MyIT to run a single test file called "foo/MyIT.java". The test patterns prefixed with a ! will be excluded. ++This parameter overrides the parameter includes and excludes, and the TestNG parameter suiteXmlFiles. ++Since 2.7.3 You can execute a limited number of methods in the test with adding #myMethod or #my*ethod. E.g. type -Dit.test=MyIT#myMethod supported for junit 4.x and TestNg. ++Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): "-Dit.test=???IT, !Unstable*, pkg/**/Ci*leIT.java, *IT#test*One+testTwo?????, #fast*+slowTest" or e.g. ++"-Dit.test=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyIT.class#one.*|two.*], %regex[#fast.*|slow.*]" +The Parameterized JUnit runner describes test methods using an index in brackets, so the non-regex method pattern would become: #testMethod[*]. If using @Parameters(name="{index}: fib({0})={1}") and selecting the index e.g. 5 in pattern, the non-regex method pattern would become #testMethod[5:*]. + + @@ -787,74 +648,56 @@ index 000000000..3b4bb7649 + java.io.File + false + true -+ The directory containing generated test classes of the project being tested. This will be included at the beginning of the test classpath. ++ + + + testNGArtifactName + java.lang.String -+ 2.3.1 + false + true -+ Allows you to specify the name of the TestNG artifact. If not set, org.testng:testng will be used. ++ + + + testSourceDirectory + java.io.File -+ 2.2 + false + true -+ The test source directory containing test class sources. Important only for TestNG HTML reports. ++ + + + threadCount + int -+ 2.2 + false + true -+ (TestNG/JUnit 4.7 provider) The attribute thread-count allows you to specify how many threads should be allocated for this execution. Only makes sense to use in conjunction with the parallel parameter. ++ + + + threadCountClasses + int -+ 2.16 + false + true -+ (JUnit 4.7 provider) This attribute allows you to specify the concurrency in test classes, i.e.: -+* number of concurrent classes if threadCount is 0 or unspecified -+* limited classes concurrency if useUnlimitedThreads is set to true -+* if threadCount and certain thread-count parameters are > 0 for parallel, the concurrency is computed from ratio. For instance parallel=all and the ratio between threadCountSuites:threadCountClasses:threadCountMethods is 2:3:5, there is 30% of threadCount in concurrent classes. -+* as in the previous case but without this leaf thread-count. Example: parallel=suitesAndClasses, threadCount=16, threadCountSuites=5, threadCountClasses is unspecified leaf, the number of concurrent classes is varying from >= 11 to 14 or 15. The threadCountSuites become given number of threads. Only makes sense to use in conjunction with the parallel parameter. The default value 0 behaves same as unspecified one. ++ + + + threadCountMethods + int -+ 2.16 + false + true -+ (JUnit 4.7 provider) This attribute allows you to specify the concurrency in test methods, i.e.: -+* number of concurrent methods if threadCount is 0 or unspecified -+* limited concurrency of methods if useUnlimitedThreads is set to true -+* if threadCount and certain thread-count parameters are > 0 for parallel, the concurrency is computed from ratio. For instance parallel=all and the ratio between threadCountSuites:threadCountClasses:threadCountMethods is 2:3:5, there is 50% of threadCount which appears in concurrent methods. -+* as in the previous case but without this leaf thread-count. Example: parallel=all, threadCount=16, threadCountSuites=2, threadCountClasses=3, but threadCountMethods is unspecified leaf, the number of concurrent methods is varying from >= 11 to 14 or 15. The threadCountSuites and threadCountClasses become given number of threads. Only makes sense to use in conjunction with the parallel parameter. The default value 0 behaves same as unspecified one. ++ + + + threadCountSuites + int -+ 2.16 + false + true -+ (JUnit 4.7 provider) This attribute allows you to specify the concurrency in test suites, i.e.: -+* number of concurrent suites if threadCount is 0 or unspecified -+* limited suites concurrency if useUnlimitedThreads is set to true -+* if threadCount and certain thread-count parameters are > 0 for parallel, the concurrency is computed from ratio. For instance parallel=all and the ratio between threadCountSuites:threadCountClasses:threadCountMethods is 2:3:5, there is 20% of threadCount which appeared in concurrent suites. Only makes sense to use in conjunction with the parallel parameter. The default value 0 behaves same as unspecified one. ++ + + + trimStackTrace + boolean -+ 2.2 + false + true -+ Whether to trim the stack trace in the reports to just the lines within the test, or show the full trace. ++ + + + useFile @@ -869,7 +712,7 @@ index 000000000..3b4bb7649 + 2.4.3 + false + true -+ By default, Surefire forks your tests using a manifest-only JAR; set this parameter to "false" to force it to launch your tests with a plain old Java classpath. (See the http://maven.apache.org/plugins/maven-failsafe-plugin/examples/class-loading.html <http://maven.apache.org/plugins/maven-failsafe-plugin/examples/class-loading.html> for a more detailed explanation of manifest-only JARs and their benefits.) ++ By default, Surefire forks your tests using a manifest-only JAR; set this parameter to "false" to force it to launch your tests with a plain old Java classpath. (See the http://maven.apache.org/plugins/maven-failsafe-plugin/examples/class-loading.html <http://maven.apache.org/plugins/maven-failsafe-plugin/examples/class-loading.html> for a more detailed explanation of manifest-only JARs and their benefits.) +Beware, setting this to "false" may cause your tests to fail on Windows if your classpath is too long. + + @@ -878,7 +721,7 @@ index 000000000..3b4bb7649 + 3.0.0-M2 + false + true -+ When true, uses the modulepath when executing with JDK 9+ and module-info.java is present. When false, always uses the classpath. ++ When true, uses the modulepath when executing with JDK 9+ and module-info.java is present. When false, always uses the classpath. +Defaults to true. + + @@ -892,18 +735,16 @@ index 000000000..3b4bb7649 + + useUnlimitedThreads + boolean -+ 2.5 + false + true -+ (JUnit 4.7 provider) Indicates that the thread pool will be unlimited. The parallel parameter and the actual number of classes/methods will decide. Setting this to "true" effectively disables perCoreThreadCount and threadCount. Defaults to "false". ++ + + + workingDirectory + java.io.File -+ 2.1.3 + false + true -+ Command line working directory. ++ + + + @@ -914,7 +755,7 @@ index 000000000..3b4bb7649 + ${maven.test.dependency.excludes} + ${maven.failsafe.debug} + ${dependenciesToScan} -+ ${disableXmlReport} ++ ${disableXmlReport} + ${enableAssertions} + ${enableOutErrElements} + ${failsafe.enableProcessChecker} @@ -1114,12 +955,10 @@ index 000000000..3b4bb7649 + + + -diff --git a/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml b/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml -new file mode 100644 -index 000000000..6fff09c3b ---- /dev/null -+++ b/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml -@@ -0,0 +1,1308 @@ +diff -urEbwBN a/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml b/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml +--- a/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml 1970-01-01 01:00:00.000000000 +0100 ++++ b/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml 2024-11-04 10:44:32.820687653 +0100 +@@ -0,0 +1,1175 @@ + + + @@ -1208,54 +1047,37 @@ index 000000000..6fff09c3b + + additionalClasspathDependencies + java.util.List -+ 3.2 + false + true -+ Additional Maven dependencies to be added to the test classpath at runtime. Each element supports the parametrization like documented in POM Reference: Dependencies <https://maven.apache.org/pom.html#dependencies>. -+Those dependencies are automatically collected (i.e. have their full dependency tree calculated) and then all underlying artifacts are resolved from the repository (including their transitive dependencies). Afterwards the resolved artifacts are filtered to only contain compile and runtime scoped ones and appended to the test classpath at runtime (after the ones from additionalClasspathElements). -+ -+The following differences to regular project dependency resolving apply: -+ -+* The dependency management from the project is not taken into account. -+* Conflicts between the different items and the project dependencies are not resolved. -+* Only external dependencies (outside the current Maven reactor) are supported. ++ + + + additionalClasspathElements + java.lang.String[] -+ 2.4 + false + true -+ Additional elements to be appended to the test classpath at runtime. Each element must be a file system path to a JAR file or a directory containing classes. No wildcards are allowed here. ++ + + + argLine + java.lang.String -+ 2.1 + false + true -+ Arbitrary JVM options to set on the command line. Only effective for forked executions. -+ -+Since the Version 2.17 using an alternate syntax for argLine, @{...} allows late replacement of properties when the plugin is executed, so properties that have been modified by other plugins will be picked up correctly. See the Frequently Asked Questions page with more details: -+http://maven.apache.org/surefire/maven-surefire-plugin/faq.html <http://maven.apache.org/surefire/maven-surefire-plugin/faq.html> -+http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html <http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html> -+See also: forkCount ++ + + + basedir + java.io.File + true + false -+ The base directory of the project being tested. This can be obtained in your integration test via System.getProperty("basedir"). ++ + + + childDelegation + boolean -+ 2.1 + false + true -+ When false it makes tests run using the standard classloader delegation instead of the default Maven isolated classloader. Only used when forking (forkCount is greater than zero). -+Setting it to false helps with some problems caused by conflicts between xml parsers in the classpath and the Java 5 provider parser. ++ + + + classesDirectory @@ -1267,27 +1089,16 @@ index 000000000..6fff09c3b + + classpathDependencyExcludes + java.lang.String[] -+ 2.6 + false + true -+ List of dependencies to exclude from the test classpath at runtime. Each item is passed as pattern to org.apache.maven.shared.artifact.filter.PatternIncludesArtifactFilter. The pattern is matched against the following artifact ids: -+* groupId:artifactId (Short ID) -+* groupId:artifactId:type:classifier (Dependency Conflict ID) -+* groupId:artifactId:type:classifier:version (Full ID) The matching algorithm is described in detail in Advanced Artifact-Matching <https://maven.apache.org/plugins/maven-assembly-plugin/advanced-descriptor-topics.html#advanced-artifact-matching-in-includes-and-excludes> for the maven-assembly-plugin. This parameter behaves the same as the excludes pattern described there. The dependency matching is applied to the project dependency IDs (including transitive ones) after resolving, i.e. excluding one dependency will not exclude its transitive dependencies! ++ + + + classpathDependencyScopeExclude + java.lang.String -+ 2.6 + false + true -+ A dependency scope to exclude from the test classpath at runtime. The scope should be one of the scopes defined by org.apache.maven.artifact.Artifact. This includes the following: -+ -+* compile - system, provided, compile -+* runtime - compile, runtime -+* compile+runtime - system, provided, compile, runtime -+* runtime+system - system, compile, runtime -+* test - system, provided, compile, runtime, test ++ + + + consoleOutputReporter @@ -1314,51 +1125,31 @@ index 000000000..6fff09c3b + + dependenciesToScan + java.lang.String[] -+ 2.15 + false + true -+ List of dependencies to scan for test classes to include in the test run. The child elements of this element must be <dependency> elements, and the contents of each of these elements must be a string which follows the general form: -+groupId[:artifactId[:type[:classifier][:version]]] -+ -+The wildcard character * can be used within the sub parts of those composite identifiers to do glob-like pattern matching. The classifier may be omitted when matching dependencies without a classifier. -+ -+Examples: -+ -+* group or, equivalently, group:* -+* g*p:*rtifac* -+* group:*:jar -+* group:artifact:*:1.0.0 (no classifier) -+* group:*:test-jar:tests -+* *:artifact:*:*:1.0.0 -+Since version 2.22.0 you can scan for test classes from a project dependency of your multi-module project. -+ -+In versions before 3.0.0-M4, only groupId:artifactId is supported. -+ ++ + + + disableXmlReport -+ boolean -+ 2.2 ++ java.lang.Boolean + No reason given + false + true -+ Flag to disable the generation of report files in xml format. Deprecated since 3.0.0-M4. Instead use disable within statelessTestsetReporter since of 3.0.0-M6. ++ + + + enableAssertions + boolean -+ 2.3.1 + false + true -+ By default, Surefire enables JVM assertions for the execution of your test cases. To disable the assertions, set this flag to "false". ++ + + + enableOutErrElements + boolean -+ 3.3.1 + false + true -+ Flag for including/excluding <system-out /> and <system-err /> elements for successfully passed tests in XML reports. Note that the default value may change to false is a future version. ++ + + + enableProcessChecker @@ -1366,24 +1157,23 @@ index 000000000..6fff09c3b + 3.0.0-M4 + false + true -+ Since 3.0.0-M4 the process checkers are disabled. You can enable them namely by setting ping and native or all in this parameter. -+The checker is useful in situations when you kill the build on a CI system and you want the Surefire forked JVM to kill the tests asap and free all handlers on the file system been previously used by the JVM and by the tests. -+The ping should be safely used together with ZGC or Shenandoah Garbage Collector. Due to the ping relies on timing of the PING (triggered every 30 seconds), slow GCs may pause the timers and pretend that the parent process of the forked JVM does not exist. -+The native is very fast checker. It is useful mechanism on Unix based systems, Linux distributions and Alpine/BusyBox Linux. See the JIRA SUREFIRE-1631 <https://issues.apache.org/jira/browse/SUREFIRE-1631> for Windows issues. -+Another useful configuration parameter is forkedProcessTimeoutInSeconds. ++ Since 3.0.0-M4 the process checkers are disabled. You can enable them namely by setting ping and native or all in this parameter. ++The checker is useful in situations when you kill the build on a CI system and you want the Surefire forked JVM to kill the tests asap and free all handlers on the file system been previously used by the JVM and by the tests. ++The ping should be safely used together with ZGC or Shenandoah Garbage Collector. Due to the ping relies on timing of the PING (triggered every 30 seconds), slow GCs may pause the timers and pretend that the parent process of the forked JVM does not exist. ++The native is very fast checker. It is useful mechanism on Unix based systems, Linux distributions and Alpine/BusyBox Linux. See the JIRA SUREFIRE-1631 <https://issues.apache.org/jira/browse/SUREFIRE-1631> for Windows issues. ++Another useful configuration parameter is forkedProcessTimeoutInSeconds. +See the Frequently Asked Questions page with more details: -+http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm> -+http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm> -+Example of use: ++http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm> ++http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm> ++Example of use: +mvn test -Dfailsafe.enableProcessChecker=all + + + enablePropertiesElement + boolean -+ 3.3.1 + false + true -+ Flag for including/excluding <properties /> element for successfully passed tests in XML reports. ++ + + + encoding @@ -1396,10 +1186,9 @@ index 000000000..6fff09c3b + + environmentVariables + java.util.Map -+ 2.1.3 + false + true -+ Additional environment variables to set on the command line. ++ + + + excludeJUnit5Engines @@ -1415,32 +1204,28 @@ index 000000000..6fff09c3b + 3.0.0-M4 + false + true -+ You can selectively exclude individual environment variables by enumerating their keys. -+The environment is a system-dependent mapping from keys to values which is inherited from the Maven process to the forked Surefire processes. The keys must literally (case sensitive) match in order to exclude their environment variable. -+Example to exclude three environment variables: ++ You can selectively exclude individual environment variables by enumerating their keys. ++The environment is a system-dependent mapping from keys to values which is inherited from the Maven process to the forked Surefire processes. The keys must literally (case sensitive) match in order to exclude their environment variable. ++Example to exclude three environment variables: +mvn test -Dfailsafe.excludedEnvironmentVariables=ACME1,ACME2,ACME3 + + + excludedGroups + java.lang.String -+ 2.2 + false + true -+ (TestNG/JUnit47 provider with JUnit4.8+ only and JUnit5+ provider since 2.22.0) Excluded groups/categories/tags. Any methods/classes/etc with one of the groups/categories/tags specified in this list will specifically not be run. -+For JUnit4, this parameter forces the use of the 4.7 provider. For JUnit5, this parameter forces the use of the JUnit platform provider. -+This parameter is ignored if the suiteXmlFiles parameter is specified. -+Since version 2.18.1 and JUnit 4.12, the @Category annotation type is automatically inherited from superclasses, see @java.lang.annotation.Inherited. Make sure that test class inheritance still makes sense together with @Category annotation of the JUnit 4.12 or higher appeared in superclass. ++ + + + excludes + java.util.List + false + true -+ A list of <exclude> elements specifying the tests (by pattern) that should be excluded in testing. When not specified and when the test parameter is not specified, the default excludes will be -+<excludes> <exclude>**/*$*</exclude> </excludes> (which excludes all inner classes). -+This parameter is ignored if the TestNG suiteXmlFiles parameter is specified. ++ A list of <exclude> elements specifying the tests (by pattern) that should be excluded in testing. When not specified and when the test parameter is not specified, the default excludes will be ++<excludes> <exclude>**/*$*</exclude> </excludes> (which excludes all inner classes). ++This parameter is ignored if the TestNG suiteXmlFiles parameter is specified. +Each exclude item may also contain a comma-separated sub-list of items, which will be treated as multiple <exclude> entries. -+Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <exclude>%regex[pkg.*Slow.*.class], Unstable*</exclude> ++Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <exclude>%regex[pkg.*Slow.*.class], Unstable*</exclude> +Notice that these values are relative to the directory containing generated test classes of the project being tested. This directory is declared by the parameter testClassesDirectory which defaults to the POM property ${project.build.testOutputDirectory}, typically src/test/java unless overridden. + + @@ -1449,7 +1234,7 @@ index 000000000..6fff09c3b + 2.13 + false + true -+ A file containing exclude patterns, each in a next line. Blank lines, or lines starting with # are ignored. If excludes are also specified, these patterns are appended. Example with path, simple and regex excludes: */it/* **/DontRunIT.* %regex[.*IT.*|.*Not.*] ++ A file containing exclude patterns, each in a next line. Blank lines, or lines starting with # are ignored. If excludes are also specified, these patterns are appended. Example with path, simple and regex excludes: */it/* **/DontRunIT.* %regex[.*IT.*|.*Not.*] +Since 3.0.0-M6, method filtering support is provided in the exclusions file as well, example: pkg.SomeIT#testMethod + + @@ -1472,22 +1257,16 @@ index 000000000..6fff09c3b + + failIfNoTests + boolean -+ 2.4 + false + true -+ Set this to "true" to cause a failure if there are no tests to run. Defaults to "false". ++ + + + forkCount + java.lang.String -+ 2.14 + false + true -+ Option to specify the number of VMs to fork in parallel in order to execute the tests. When terminated with "C", the number part is multiplied with the number of CPU cores. Floating point value are only accepted together with "C". If set to "0", no VM is forked and all tests are executed within the main process. -+ -+Example values: "1.5C", "4" -+ -+The system properties and the argLine of the forked processes may contain the place holder string ${surefire.forkNumber}, which is replaced with a fixed number for each of the parallel forks, ranging from 1 to the effective value of forkCount times the maximum number of parallel Surefire executions in maven parallel builds, i.e. the effective value of the -T command line argument of maven core. ++ + + + forkNode @@ -1495,7 +1274,7 @@ index 000000000..6fff09c3b + 3.0.0-M5 + false + true -+ This parameter configures the forked node. Currently, you can select the communication protocol, i.e. process pipes or TCP/IP sockets. The plugin uses process pipes by default which will be turned to TCP/IP in the version 3.0.0. Alternatively, you can implement your own factory and SPI. ++ This parameter configures the forked node. Currently, you can select the communication protocol, i.e. process pipes or TCP/IP sockets. The plugin uses process pipes by default which will be turned to TCP/IP in the version 3.0.0. Alternatively, you can implement your own factory and SPI. +See the documentation for more details: +https://maven.apache.org/plugins/maven-surefire-plugin/examples/process-communication.html <https://maven.apache.org/plugins/maven-surefire-plugin/examples/process-communication.html> + @@ -1518,13 +1297,9 @@ index 000000000..6fff09c3b + + groups + java.lang.String -+ 2.2 + false + true -+ (TestNG/JUnit47 provider with JUnit4.8+ only and JUnit5+ provider since 2.22.0) Groups/categories/tags for this test. Only classes/methods/etc decorated with one of the groups/categories/tags specified here will be included in test run, if specified. -+For JUnit4 tests, this parameter forces the use of the 4.7 provider. For JUnit5 tests, this parameter forces the use of the JUnit platform provider. -+This parameter is ignored if the suiteXmlFiles parameter is specified. -+Since version 2.18.1 and JUnit 4.12, the @Category annotation type is automatically inherited from superclasses, see @java.lang.annotation.Inherited. Make sure that test class inheritance still makes sense together with @Category annotation of the JUnit 4.12 or higher appeared in superclass. ++ + + + includeJUnit5Engines @@ -1539,9 +1314,9 @@ index 000000000..6fff09c3b + java.util.List + false + true -+ A list of <include> elements specifying the test filter (by pattern) of tests which should be included in testing. If it is not specified and the test parameter is unspecified as well, the default includes is <includes> <include>**/IT*.java</include> <include>**/*IT.java</include> <include>**/*ITCase.java</include> </includes> ++ A list of <include> elements specifying the test filter (by pattern) of tests which should be included in testing. If it is not specified and the test parameter is unspecified as well, the default includes is <includes> <include>**/IT*.java</include> <include>**/*IT.java</include> <include>**/*ITCase.java</include> </includes> +Each include item may also contain a comma-separated sublist of items, which will be treated as multiple <include> entries. -+Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <include>%regex[.*[Cat|Dog].*], Basic????, !Unstable*</include> <include>%regex[.*[Cat|Dog].*], !%regex[pkg.*Slow.*.class], pkg/**/*Fast*.java</include> ++Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <include>%regex[.*[Cat|Dog].*], Basic????, !Unstable*</include> <include>%regex[.*[Cat|Dog].*], !%regex[pkg.*Slow.*.class], pkg/**/*Fast*.java</include> +This parameter is ignored if the TestNG suiteXmlFiles parameter is specified. + +Notice that these values are relative to the directory containing generated test classes of the project being tested. This directory is declared by the parameter testClassesDirectory which defaults to the POM property ${project.build.testOutputDirectory}, typically src/test/java unless overridden. @@ -1552,75 +1327,57 @@ index 000000000..6fff09c3b + 2.13 + false + true -+ A file containing include patterns, each in a next line. Blank lines, or lines starting with # are ignored. If includes are also specified, these patterns are appended. Example with path, simple and regex includes: */it/* **/NotIncludedByDefault.java %regex[.*IT.*|.*Not.*] ++ A file containing include patterns, each in a next line. Blank lines, or lines starting with # are ignored. If includes are also specified, these patterns are appended. Example with path, simple and regex includes: */it/* **/NotIncludedByDefault.java %regex[.*IT.*|.*Not.*] +Since 3.0.0-M6, method filtering support is provided in the inclusions file as well, example: pkg.SomeIT#testMethod + + + jdkToolchain + java.util.Map -+ 3.0.0-M5 and Maven 3.3.x + false + true -+ -+Allow for configuration of the test jvm via maven toolchains. This permits a configuration where the project is built with one jvm and tested with another. This is similar to jvm, but avoids hardcoding paths. The two parameters are mutually exclusive (jvm wins) -+ -+Examples: -+(see Guide to Toolchains <https://maven.apache.org/guides/mini/guide-using-toolchains.html> for more info) <configuration> ... <jdkToolchain> <version>1.11</version> </jdkToolchain> </configuration> <configuration> ... <jdkToolchain> <version>1.8</version> <vendor>zulu</vendor> </jdkToolchain> </configuration> ++ + + + junitArtifactName + java.lang.String -+ 2.3.1 + false + true -+ Allows you to specify the name of the JUnit artifact. If not set, junit:junit will be used. ++ + + + jvm + java.lang.String -+ 2.1 + false + true -+ Option to specify the jvm (or path to the java executable) to use with the forking options. For the default, the jvm will be a new instance of the same VM as the one used to run Maven. JVM settings are not inherited from MAVEN_OPTS. ++ + + + objectFactory + java.lang.String -+ 2.5 + false + true -+ (TestNG only) Define the factory class used to create all test instances. ++ + + + parallel + java.lang.String -+ 2.2 + false + true -+ (TestNG provider) When you use the parameter parallel, TestNG will try to run all your test methods in separate threads, except for methods that depend on each other, which will be run in the same thread in order to respect their order of execution. Supports two values: classes or methods. -+(JUnit 4.7 provider) Supports values classes, methods, both to run in separate threads been controlled by threadCount. -+ -+Since version 2.16 (JUnit 4.7 provider), the value both is DEPRECATED. Use classesAndMethods instead. -+ -+Since version 2.16 (JUnit 4.7 provider), additional vales are available: -+suites, suitesAndClasses, suitesAndMethods, classesAndMethods, all. -+By default, Surefire does not execute tests in parallel. You can set the parameter parallel to none to explicitly disable parallel execution (e.g. when disabling parallel execution in special Maven profiles when executing coverage analysis). ++ + + + parallelMavenExecution + java.lang.Boolean + false + false -+ Parallel Maven Execution. ++ + + + parallelOptimized + boolean -+ 2.17 + false + true -+ (JUnit 4.7 / provider only) The thread counts do not exceed the number of parallel suite, class runners and average number of methods per class if set to true. -+True by default. ++ + + + parallelTestsTimeoutForcedInSeconds @@ -1628,7 +1385,7 @@ index 000000000..6fff09c3b + 2.16 + false + true -+ Stop executing queued parallel JUnit tests and interrupt currently running tests after a certain number of seconds. ++ Stop executing queued parallel JUnit tests and interrupt currently running tests after a certain number of seconds. +Example values: "3.5", "4" + +If set to 0, wait forever, never timing out. Makes sense with specified parallel different from "none". @@ -1639,7 +1396,7 @@ index 000000000..6fff09c3b + 2.16 + false + true -+ Stop executing queued parallel JUnit tests after a certain number of seconds. ++ Stop executing queued parallel JUnit tests after a certain number of seconds. +Example values: "3.5", "4" + +If set to 0, wait forever, never timing out. Makes sense with specified parallel different from "none". @@ -1647,25 +1404,23 @@ index 000000000..6fff09c3b + + perCoreThreadCount + boolean -+ 2.5 + false + true -+ (JUnit 4.7 provider) Indicates that threadCount, threadCountSuites, threadCountClasses, threadCountMethods are per cpu core. ++ + + + pluginArtifactMap + java.util.Map + true + false -+ Map of plugin artifacts. ++ + + + pluginDescriptor + org.apache.maven.plugin.descriptor.PluginDescriptor -+ 2.12 + true + false -+ Information about this plugin, mainly used to lookup this plugin's configuration from the currently executing project. ++ + + + printSummary @@ -1679,50 +1434,42 @@ index 000000000..6fff09c3b + org.apache.maven.project.MavenProject + true + false -+ The Maven Project Object. ++ + + + projectArtifactMap + java.util.Map + true + false -+ Map of project artifacts. ++ + + + projectBuildDirectory + java.io.File -+ 2.20 + true + false -+ Read-only parameter with value of Maven property project.build.directory. ++ + + + promoteUserPropertiesToSystemProperties + boolean -+ 3.4.0 + false + true -+ If set to true will also pass all user properties exposed via org.apache.maven.execution.MavenSession.getUserProperties() as system properties to a provider. Those always take precedence over same named system properties set via any other means. -+See also: systemPropertyVariables ++ + + + properties + java.util.Properties -+ 2.4 + false + true -+ List of properties for configuring the testing provider. This is the preferred method of configuring TestNG and JUnit platform providers. -+ -+JUnit platform properties may be defined in a configurationParameters element: <properties> <configurationParameters> junit.jupiter.execution.parallel.enabled = true junit.jupiter.execution.parallel.mode.default = concurrent </configurationParameters> </properties> -+TestNG properties may be defined as distinct element blocks: <properties> <property> <name>parallel</name> <value>methods</value> </property> </properties> ++ + + + redirectTestOutputToFile + boolean -+ 2.3 + false + true -+ Set this to "true" to redirect the unit test standard output to a file (found in reportsDirectory/testName-output.txt). ++ + + + reportFormat @@ -1736,7 +1483,7 @@ index 000000000..6fff09c3b + java.lang.String + false + true -+ Add custom text into report filename: TEST-testClassName-reportNameSuffix.xml, testClassName-reportNameSuffix.txt and testClassName-reportNameSuffix-output.txt. File TEST-testClassName-reportNameSuffix.xml has changed attributes 'testsuite'--'name' and 'testcase'--'classname' - reportNameSuffix is added to the attribute value. ++ + + + reportsDirectory @@ -1755,10 +1502,9 @@ index 000000000..6fff09c3b + + reuseForks + boolean -+ 2.13 + false + true -+ Indicates if forked VMs can be reused. If set to "false", a new VM is forked for each test class to be executed. If set to "true", up to forkCount VMs will be forked and then reused to execute all tests. ++ + + + runOrder @@ -1766,13 +1512,13 @@ index 000000000..6fff09c3b + 2.7 + false + true -+ Defines the order the tests will be run in. Supported values are alphabetical, reversealphabetical, random, hourly (alphabetical on even hours, reverse alphabetical on odd hours), failedfirst, balanced and filesystem. ++ Defines the order the tests will be run in. Supported values are alphabetical, reversealphabetical, random, hourly (alphabetical on even hours, reverse alphabetical on odd hours), failedfirst, balanced and filesystem. + -+Odd/Even for hourly is determined at the time the of scanning the classpath, meaning it could change during a multi-module build. ++Odd/Even for hourly is determined at the time the of scanning the classpath, meaning it could change during a multi-module build. + -+Failed first will run tests that failed on previous run first, as well as new tests for this run. ++Failed first will run tests that failed on previous run first, as well as new tests for this run. + -+Balanced is only relevant with parallel=classes, and will try to optimize the run-order of the tests reducing the overall execution time. Initially a statistics file is created and every next test run will reorder classes. ++Balanced is only relevant with parallel=classes, and will try to optimize the run-order of the tests reducing the overall execution time. Initially a statistics file is created and every next test run will reorder classes. + +Note that the statistics are stored in a file named .surefire-XXXXXXXXX beside pom.xml and should not be checked into version control. The "XXXXX" is the SHA1 checksum of the entire surefire configuration, so different configurations will have different statistics files, meaning if you change any configuration settings you will re-run once before new statistics data can be established. + @@ -1782,9 +1528,9 @@ index 000000000..6fff09c3b + 3.0.0-M6 + false + true -+ Sets the random seed that will be used to order the tests if failsafe.runOrder is set to random. ++ Sets the random seed that will be used to order the tests if failsafe.runOrder is set to random. + -+If no seeds are set and failsafe.runOrder is set to random, then the seed used will be outputted (search for "To reproduce ordering use flag -Dfailsafe.runOrder.random.seed"). ++If no seeds are set and failsafe.runOrder is set to random, then the seed used will be outputted (search for "To reproduce ordering use flag -Dfailsafe.runOrder.random.seed"). + +To deterministically reproduce any random test order that was run before, simply set the seed to be the same value. + @@ -1793,7 +1539,7 @@ index 000000000..6fff09c3b + org.apache.maven.execution.MavenSession + true + false -+ The current build session instance. ++ + + + shutdown @@ -1801,11 +1547,11 @@ index 000000000..6fff09c3b + 2.19 + false + true -+ After the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every forked JVM. -+The value is set to (shutdown=exit) by default (changed in version 3.0.0-M4). -+The parameter can be configured with other two values testset and kill. -+With(shutdown=testset) the test set may still continue to run in forked JVM. -+Using exit forked JVM executes System.exit(1) after the plugin process has received SIGTERM signal. ++ After the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every forked JVM. ++The value is set to (shutdown=exit) by default (changed in version 3.0.0-M4). ++The parameter can be configured with other two values testset and kill. ++With(shutdown=testset) the test set may still continue to run in forked JVM. ++Using exit forked JVM executes System.exit(1) after the plugin process has received SIGTERM signal. +Using kill the JVM executes Runtime.halt(1) and kills itself. + + @@ -1813,7 +1559,7 @@ index 000000000..6fff09c3b + boolean + false + true -+ Set this to "true" to bypass unit tests entirely. Its use is NOT RECOMMENDED, especially if you enable it using the "maven.test.skip" property, because maven.test.skip disables both running the tests and compiling the tests. Consider using the skipTests parameter instead. ++ + + + skipAfterFailureCount @@ -1829,11 +1575,10 @@ index 000000000..6fff09c3b + + skipExec + boolean -+ 2.3 -+ Use skipTests instead. ++ No reason given + false + true -+ This old parameter is just like skipTests, but bound to the old property "maven.test.skip.exec". ++ + + + skipITs @@ -1846,11 +1591,9 @@ index 000000000..6fff09c3b + + skipTests + boolean -+ 2.4 + false + true -+ Set this to "true" to skip running tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion. -+Failsafe plugin deprecated the parameter skipTests and the parameter will be removed in Failsafe 3.0.0 as it is a source of conflicts between Failsafe and Surefire plugin. ++ + + + statelessTestsetInfoReporter @@ -1864,7 +1607,7 @@ index 000000000..6fff09c3b + org.apache.maven.plugin.surefire.extensions.SurefireStatelessReporter + false + true -+ Note: use the legacy system property disableXmlReport set to true to disable the report. ++ + + + suiteXmlFiles @@ -1885,11 +1628,10 @@ index 000000000..6fff09c3b + + systemProperties + java.util.Properties -+ Use systemPropertyVariables instead. ++ No reason given + false + true -+ List of System properties to pass to a provider. -+See also: systemPropertyVariables for how the effective provider properties are calculated ++ + + + systemPropertiesFile @@ -1902,43 +1644,27 @@ index 000000000..6fff09c3b + + systemPropertyVariables + java.util.Map -+ 2.5 + false + true -+ List of System properties to pass to a provider. The effective system properties given to a provider are contributed from several sources: -+* properties set via argLine with -D (only for forked executions) -+* systemProperties -+* getSystemPropertiesFile() (set via parameter systemPropertiesFile on some goals) -+* systemPropertyVariables -+* User properties from org.apache.maven.execution.MavenSession.getUserProperties(), usually set via CLI options given with -D on the current Maven process (only used as source if promoteUserPropertiesToSystemProperties is true) Later sources may overwrite same named properties from earlier sources, that means for example that one cannot overwrite user properties with either systemProperties, getSystemPropertiesFile() or systemPropertyVariables. -+Certain properties may only be overwritten via argLine (applicable only for forked executions) because their values are cached and only evaluated at the start of the JRE. Those include: -+ -+* java.library.path -+* file.encoding -+* jdk.map.althashing.threshold -+* line.separator -+See also: systemProperties ++ + + + tempDir + java.lang.String -+ 2.20 + false + true -+ Relative path to temporary-surefire-boot directory containing internal Surefire temporary files. -+The temporary-surefire-boot directory is project.build.directory on most platforms or system default temporary-directory specified by the system property java.io.tmpdir on Windows (see SUREFIRE-1400 <https://issues.apache.org/jira/browse/SUREFIRE-1400>). -+It is deleted after the test set has completed. ++ + + + test + java.lang.String + false + true -+ Specify this parameter to run individual tests by file name, overriding parameter includes and excludes. Each pattern you specify here will be used to create an include pattern formatted like **/${it.test}.java, so you can just type -Dit.test=MyIT to run a single test file called "foo/MyIT.java". The test patterns prefixed with a ! will be excluded. -+This parameter overrides the parameter includes and excludes, and the TestNG parameter suiteXmlFiles. -+Since 2.7.3 You can execute a limited number of methods in the test with adding #myMethod or #my*ethod. E.g. type -Dit.test=MyIT#myMethod supported for junit 4.x and TestNg. -+Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): "-Dit.test=???IT, !Unstable*, pkg/**/Ci*leIT.java, *IT#test*One+testTwo?????, #fast*+slowTest" or e.g. -+"-Dit.test=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyIT.class#one.*|two.*], %regex[#fast.*|slow.*]" ++ Specify this parameter to run individual tests by file name, overriding parameter includes and excludes. Each pattern you specify here will be used to create an include pattern formatted like **/${it.test}.java, so you can just type -Dit.test=MyIT to run a single test file called "foo/MyIT.java". The test patterns prefixed with a ! will be excluded. ++This parameter overrides the parameter includes and excludes, and the TestNG parameter suiteXmlFiles. ++Since 2.7.3 You can execute a limited number of methods in the test with adding #myMethod or #my*ethod. E.g. type -Dit.test=MyIT#myMethod supported for junit 4.x and TestNg. ++Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): "-Dit.test=???IT, !Unstable*, pkg/**/Ci*leIT.java, *IT#test*One+testTwo?????, #fast*+slowTest" or e.g. ++"-Dit.test=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyIT.class#one.*|two.*], %regex[#fast.*|slow.*]" +The Parameterized JUnit runner describes test methods using an index in brackets, so the non-regex method pattern would become: #testMethod[*]. If using @Parameters(name="{index}: fib({0})={1}") and selecting the index e.g. 5 in pattern, the non-regex method pattern would become #testMethod[5:*]. + + @@ -1946,74 +1672,56 @@ index 000000000..6fff09c3b + java.io.File + false + true -+ The directory containing generated test classes of the project being tested. This will be included at the beginning of the test classpath. ++ + + + testNGArtifactName + java.lang.String -+ 2.3.1 + false + true -+ Allows you to specify the name of the TestNG artifact. If not set, org.testng:testng will be used. ++ + + + testSourceDirectory + java.io.File -+ 2.2 + false + true -+ The test source directory containing test class sources. Important only for TestNG HTML reports. ++ + + + threadCount + int -+ 2.2 + false + true -+ (TestNG/JUnit 4.7 provider) The attribute thread-count allows you to specify how many threads should be allocated for this execution. Only makes sense to use in conjunction with the parallel parameter. ++ + + + threadCountClasses + int -+ 2.16 + false + true -+ (JUnit 4.7 provider) This attribute allows you to specify the concurrency in test classes, i.e.: -+* number of concurrent classes if threadCount is 0 or unspecified -+* limited classes concurrency if useUnlimitedThreads is set to true -+* if threadCount and certain thread-count parameters are > 0 for parallel, the concurrency is computed from ratio. For instance parallel=all and the ratio between threadCountSuites:threadCountClasses:threadCountMethods is 2:3:5, there is 30% of threadCount in concurrent classes. -+* as in the previous case but without this leaf thread-count. Example: parallel=suitesAndClasses, threadCount=16, threadCountSuites=5, threadCountClasses is unspecified leaf, the number of concurrent classes is varying from >= 11 to 14 or 15. The threadCountSuites become given number of threads. Only makes sense to use in conjunction with the parallel parameter. The default value 0 behaves same as unspecified one. ++ + + + threadCountMethods + int -+ 2.16 + false + true -+ (JUnit 4.7 provider) This attribute allows you to specify the concurrency in test methods, i.e.: -+* number of concurrent methods if threadCount is 0 or unspecified -+* limited concurrency of methods if useUnlimitedThreads is set to true -+* if threadCount and certain thread-count parameters are > 0 for parallel, the concurrency is computed from ratio. For instance parallel=all and the ratio between threadCountSuites:threadCountClasses:threadCountMethods is 2:3:5, there is 50% of threadCount which appears in concurrent methods. -+* as in the previous case but without this leaf thread-count. Example: parallel=all, threadCount=16, threadCountSuites=2, threadCountClasses=3, but threadCountMethods is unspecified leaf, the number of concurrent methods is varying from >= 11 to 14 or 15. The threadCountSuites and threadCountClasses become given number of threads. Only makes sense to use in conjunction with the parallel parameter. The default value 0 behaves same as unspecified one. ++ + + + threadCountSuites + int -+ 2.16 + false + true -+ (JUnit 4.7 provider) This attribute allows you to specify the concurrency in test suites, i.e.: -+* number of concurrent suites if threadCount is 0 or unspecified -+* limited suites concurrency if useUnlimitedThreads is set to true -+* if threadCount and certain thread-count parameters are > 0 for parallel, the concurrency is computed from ratio. For instance parallel=all and the ratio between threadCountSuites:threadCountClasses:threadCountMethods is 2:3:5, there is 20% of threadCount which appeared in concurrent suites. Only makes sense to use in conjunction with the parallel parameter. The default value 0 behaves same as unspecified one. ++ + + + trimStackTrace + boolean -+ 2.2 + false + true -+ Whether to trim the stack trace in the reports to just the lines within the test, or show the full trace. ++ + + + useFile @@ -2028,7 +1736,7 @@ index 000000000..6fff09c3b + 2.4.3 + false + true -+ By default, Surefire forks your tests using a manifest-only JAR; set this parameter to "false" to force it to launch your tests with a plain old Java classpath. (See the http://maven.apache.org/plugins/maven-failsafe-plugin/examples/class-loading.html <http://maven.apache.org/plugins/maven-failsafe-plugin/examples/class-loading.html> for a more detailed explanation of manifest-only JARs and their benefits.) ++ By default, Surefire forks your tests using a manifest-only JAR; set this parameter to "false" to force it to launch your tests with a plain old Java classpath. (See the http://maven.apache.org/plugins/maven-failsafe-plugin/examples/class-loading.html <http://maven.apache.org/plugins/maven-failsafe-plugin/examples/class-loading.html> for a more detailed explanation of manifest-only JARs and their benefits.) +Beware, setting this to "false" may cause your tests to fail on Windows if your classpath is too long. + + @@ -2037,7 +1745,7 @@ index 000000000..6fff09c3b + 3.0.0-M2 + false + true -+ When true, uses the modulepath when executing with JDK 9+ and module-info.java is present. When false, always uses the classpath. ++ When true, uses the modulepath when executing with JDK 9+ and module-info.java is present. When false, always uses the classpath. +Defaults to true. + + @@ -2051,18 +1759,16 @@ index 000000000..6fff09c3b + + useUnlimitedThreads + boolean -+ 2.5 + false + true -+ (JUnit 4.7 provider) Indicates that the thread pool will be unlimited. The parallel parameter and the actual number of classes/methods will decide. Setting this to "true" effectively disables perCoreThreadCount and threadCount. Defaults to "false". ++ + + + workingDirectory + java.io.File -+ 2.1.3 + false + true -+ Command line working directory. ++ + + + @@ -2075,7 +1781,7 @@ index 000000000..6fff09c3b + ${maven.failsafe.debug} + + ${dependenciesToScan} -+ ${disableXmlReport} ++ ${disableXmlReport} + ${enableAssertions} + ${enableOutErrElements} + ${failsafe.enableProcessChecker} @@ -2319,22 +2025,10 @@ index 000000000..6fff09c3b + + + -+ org.apache.maven.surefire -+ surefire-api -+ jar -+ 3.5.0 -+ -+ + org.apache.commons + commons-lang3 + jar -+ 3.16.0 -+ -+ -+ org.apache.maven.surefire -+ surefire-logger-api -+ jar -+ 3.5.0 ++ 3.17.0 + + + org.apache.maven.shared @@ -2346,31 +2040,67 @@ index 000000000..6fff09c3b + commons-io + commons-io + jar -+ 2.16.1 ++ 2.17.0 ++ ++ ++ org.slf4j ++ slf4j-api ++ jar ++ 1.7.36 ++ ++ ++ org.apache.maven.surefire ++ surefire-api ++ jar ++ 3.5.2 ++ ++ ++ org.apache.maven.surefire ++ surefire-logger-api ++ jar ++ 3.5.2 + + + org.apache.maven.surefire + surefire-booter + jar -+ 3.5.0 ++ 3.5.2 + + + org.apache.maven.surefire + surefire-extensions-spi + jar -+ 3.5.0 ++ 3.5.2 + + + org.apache.maven.surefire + surefire-extensions-api + jar -+ 3.5.0 ++ 3.5.2 + + + org.apache.maven.surefire + maven-surefire-common + jar -+ 3.5.0 ++ 3.5.2 ++ ++ ++ org.codehaus.plexus ++ plexus-java ++ jar ++ 1.3.0 ++ ++ ++ org.ow2.asm ++ asm ++ jar ++ 9.6 ++ ++ ++ com.thoughtworks.qdox ++ qdox ++ jar ++ 2.0.3 + + + org.apache.commons @@ -2397,30 +2127,6 @@ index 000000000..6fff09c3b + 3.4.0 + + -+ org.codehaus.plexus -+ plexus-java -+ jar -+ 1.2.0 -+ -+ -+ org.ow2.asm -+ asm -+ jar -+ 9.6 -+ -+ -+ com.thoughtworks.qdox -+ qdox -+ jar -+ 2.0.3 -+ -+ -+ org.slf4j -+ slf4j-api -+ jar -+ 1.7.36 -+ -+ + org.apache.maven.resolver + maven-resolver-api + jar @@ -2428,11 +2134,9 @@ index 000000000..6fff09c3b + + + -diff --git a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/maven_failsafe_plugin/HelpMojo.java b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/maven_failsafe_plugin/HelpMojo.java -new file mode 100644 -index 000000000..272580024 ---- /dev/null -+++ b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/maven_failsafe_plugin/HelpMojo.java +diff -urEbwBN a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/maven_failsafe_plugin/HelpMojo.java b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/maven_failsafe_plugin/HelpMojo.java +--- a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/maven_failsafe_plugin/HelpMojo.java 1970-01-01 01:00:00.000000000 +0100 ++++ b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/maven_failsafe_plugin/HelpMojo.java 2024-11-04 10:37:46.084598212 +0100 @@ -0,0 +1,448 @@ +package org.apache.maven.plugins.maven_failsafe_plugin; + @@ -2882,12 +2586,10 @@ index 000000000..272580024 + return null; + } +} -diff --git a/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-plugin/plugin-help.xml b/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-plugin/plugin-help.xml -new file mode 100644 -index 000000000..3d369f203 ---- /dev/null -+++ b/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-plugin/plugin-help.xml -@@ -0,0 +1,943 @@ +diff -urEbwBN a/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-plugin/plugin-help.xml b/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-plugin/plugin-help.xml +--- a/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-plugin/plugin-help.xml 1970-01-01 01:00:00.000000000 +0100 ++++ b/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-plugin/plugin-help.xml 2024-11-04 10:47:52.325388910 +0100 +@@ -0,0 +1,812 @@ + + + @@ -2972,47 +2674,30 @@ index 000000000..3d369f203 + + additionalClasspathDependencies + java.util.List<org.apache.maven.model.Dependency> -+ 3.2 + false + true -+ Additional Maven dependencies to be added to the test classpath at runtime. Each element supports the parametrization like documented in POM Reference: Dependencies <https://maven.apache.org/pom.html#dependencies>. -+Those dependencies are automatically collected (i.e. have their full dependency tree calculated) and then all underlying artifacts are resolved from the repository (including their transitive dependencies). Afterwards the resolved artifacts are filtered to only contain compile and runtime scoped ones and appended to the test classpath at runtime (after the ones from additionalClasspathElements). -+ -+The following differences to regular project dependency resolving apply: -+ -+* The dependency management from the project is not taken into account. -+* Conflicts between the different items and the project dependencies are not resolved. -+* Only external dependencies (outside the current Maven reactor) are supported. ++ + + + additionalClasspathElements + java.lang.String[] -+ 2.4 + false + true -+ Additional elements to be appended to the test classpath at runtime. Each element must be a file system path to a JAR file or a directory containing classes. No wildcards are allowed here. ++ + + + argLine + java.lang.String -+ 2.1 + false + true -+ Arbitrary JVM options to set on the command line. Only effective for forked executions. -+ -+Since the Version 2.17 using an alternate syntax for argLine, @{...} allows late replacement of properties when the plugin is executed, so properties that have been modified by other plugins will be picked up correctly. See the Frequently Asked Questions page with more details: -+http://maven.apache.org/surefire/maven-surefire-plugin/faq.html <http://maven.apache.org/surefire/maven-surefire-plugin/faq.html> -+http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html <http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html> -+See also: forkCount ++ + + + childDelegation + boolean -+ 2.1 + false + true -+ When false it makes tests run using the standard classloader delegation instead of the default Maven isolated classloader. Only used when forking (forkCount is greater than zero). -+Setting it to false helps with some problems caused by conflicts between xml parsers in the classpath and the Java 5 provider parser. ++ + + + classesDirectory @@ -3024,27 +2709,16 @@ index 000000000..3d369f203 + + classpathDependencyExcludes + java.lang.String[] -+ 2.6 + false + true -+ List of dependencies to exclude from the test classpath at runtime. Each item is passed as pattern to org.apache.maven.shared.artifact.filter.PatternIncludesArtifactFilter. The pattern is matched against the following artifact ids: -+* groupId:artifactId (Short ID) -+* groupId:artifactId:type:classifier (Dependency Conflict ID) -+* groupId:artifactId:type:classifier:version (Full ID) The matching algorithm is described in detail in Advanced Artifact-Matching <https://maven.apache.org/plugins/maven-assembly-plugin/advanced-descriptor-topics.html#advanced-artifact-matching-in-includes-and-excludes> for the maven-assembly-plugin. This parameter behaves the same as the excludes pattern described there. The dependency matching is applied to the project dependency IDs (including transitive ones) after resolving, i.e. excluding one dependency will not exclude its transitive dependencies! ++ + + + classpathDependencyScopeExclude + java.lang.String -+ 2.6 + false + true -+ A dependency scope to exclude from the test classpath at runtime. The scope should be one of the scopes defined by org.apache.maven.artifact.Artifact. This includes the following: -+ -+* compile - system, provided, compile -+* runtime - compile, runtime -+* compile+runtime - system, provided, compile, runtime -+* runtime+system - system, compile, runtime -+* test - system, provided, compile, runtime, test ++ + + + consoleOutputReporter @@ -3064,51 +2738,31 @@ index 000000000..3d369f203 + + dependenciesToScan + java.lang.String[] -+ 2.15 + false + true -+ List of dependencies to scan for test classes to include in the test run. The child elements of this element must be <dependency> elements, and the contents of each of these elements must be a string which follows the general form: -+groupId[:artifactId[:type[:classifier][:version]]] -+ -+The wildcard character * can be used within the sub parts of those composite identifiers to do glob-like pattern matching. The classifier may be omitted when matching dependencies without a classifier. -+ -+Examples: -+ -+* group or, equivalently, group:* -+* g*p:*rtifac* -+* group:*:jar -+* group:artifact:*:1.0.0 (no classifier) -+* group:*:test-jar:tests -+* *:artifact:*:*:1.0.0 -+Since version 2.22.0 you can scan for test classes from a project dependency of your multi-module project. -+ -+In versions before 3.0.0-M4, only groupId:artifactId is supported. -+ ++ + + + disableXmlReport -+ boolean -+ 2.2 ++ java.lang.Boolean + No reason given + false + true -+ Flag to disable the generation of report files in xml format. Deprecated since 3.0.0-M4. Instead use disable within statelessTestsetReporter since of 3.0.0-M6. ++ + + + enableAssertions + boolean -+ 2.3.1 + false + true -+ By default, Surefire enables JVM assertions for the execution of your test cases. To disable the assertions, set this flag to "false". ++ + + + enableOutErrElements + boolean -+ 3.3.1 + false + true -+ Flag for including/excluding <system-out /> and <system-err /> elements for successfully passed tests in XML reports. Note that the default value may change to false is a future version. ++ + + + enableProcessChecker @@ -3116,24 +2770,23 @@ index 000000000..3d369f203 + 3.0.0-M4 + false + true -+ Since 3.0.0-M4 the process checkers are disabled. You can enable them namely by setting ping and native or all in this parameter. -+The checker is useful in situations when you kill the build on a CI system and you want the Surefire forked JVM to kill the tests asap and free all handlers on the file system been previously used by the JVM and by the tests. -+The ping should be safely used together with ZGC or Shenandoah Garbage Collector. Due to the ping relies on timing of the PING (triggered every 30 seconds), slow GCs may pause the timers and pretend that the parent process of the forked JVM does not exist. -+The native is very fast checker. It is useful mechanism on Unix based systems, Linux distributions and Alpine/BusyBox Linux. See the JIRA SUREFIRE-1631 <https://issues.apache.org/jira/browse/SUREFIRE-1631> for Windows issues. -+Another useful configuration parameter is forkedProcessTimeoutInSeconds. ++ Since 3.0.0-M4 the process checkers are disabled. You can enable them namely by setting ping and native or all in this parameter. ++The checker is useful in situations when you kill the build on a CI system and you want the Surefire forked JVM to kill the tests asap and free all handlers on the file system been previously used by the JVM and by the tests. ++The ping should be safely used together with ZGC or Shenandoah Garbage Collector. Due to the ping relies on timing of the PING (triggered every 30 seconds), slow GCs may pause the timers and pretend that the parent process of the forked JVM does not exist. ++The native is very fast checker. It is useful mechanism on Unix based systems, Linux distributions and Alpine/BusyBox Linux. See the JIRA SUREFIRE-1631 <https://issues.apache.org/jira/browse/SUREFIRE-1631> for Windows issues. ++Another useful configuration parameter is forkedProcessTimeoutInSeconds. +See the Frequently Asked Questions page with more details: -+http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm> -+http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm> -+Example of use: ++http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm> ++http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm> ++Example of use: +mvn test -Dsurefire.enableProcessChecker=all + + + enablePropertiesElement + boolean -+ 3.3.1 + false + true -+ Flag for including/excluding <properties /> element for successfully passed tests in XML reports. ++ + + + encoding @@ -3146,10 +2799,9 @@ index 000000000..3d369f203 + + environmentVariables + java.util.Map<java.lang.String, java.lang.String> -+ 2.1.3 + false + true -+ Additional environment variables to set on the command line. ++ + + + excludeJUnit5Engines @@ -3165,32 +2817,28 @@ index 000000000..3d369f203 + 3.0.0-M4 + false + true -+ You can selectively exclude individual environment variables by enumerating their keys. -+The environment is a system-dependent mapping from keys to values which is inherited from the Maven process to the forked Surefire processes. The keys must literally (case sensitive) match in order to exclude their environment variable. -+Example to exclude three environment variables: ++ You can selectively exclude individual environment variables by enumerating their keys. ++The environment is a system-dependent mapping from keys to values which is inherited from the Maven process to the forked Surefire processes. The keys must literally (case sensitive) match in order to exclude their environment variable. ++Example to exclude three environment variables: +mvn test -Dsurefire.excludedEnvironmentVariables=ACME1,ACME2,ACME3 + + + excludedGroups + java.lang.String -+ 2.2 + false + true -+ (TestNG/JUnit47 provider with JUnit4.8+ only and JUnit5+ provider since 2.22.0) Excluded groups/categories/tags. Any methods/classes/etc with one of the groups/categories/tags specified in this list will specifically not be run. -+For JUnit4, this parameter forces the use of the 4.7 provider. For JUnit5, this parameter forces the use of the JUnit platform provider. -+This parameter is ignored if the suiteXmlFiles parameter is specified. -+Since version 2.18.1 and JUnit 4.12, the @Category annotation type is automatically inherited from superclasses, see @java.lang.annotation.Inherited. Make sure that test class inheritance still makes sense together with @Category annotation of the JUnit 4.12 or higher appeared in superclass. ++ + + + excludes + java.util.List<java.lang.String> + false + true -+ A list of <exclude> elements specifying the tests (by pattern) that should be excluded in testing. When not specified and when the test parameter is not specified, the default excludes will be -+<excludes> <exclude>**/*$*</exclude> </excludes> (which excludes all inner classes). -+This parameter is ignored if the TestNG suiteXmlFiles parameter is specified. ++ A list of <exclude> elements specifying the tests (by pattern) that should be excluded in testing. When not specified and when the test parameter is not specified, the default excludes will be ++<excludes> <exclude>**/*$*</exclude> </excludes> (which excludes all inner classes). ++This parameter is ignored if the TestNG suiteXmlFiles parameter is specified. +Each exclude item may also contain a comma-separated sub-list of items, which will be treated as multiple <exclude> entries. -+Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <exclude>%regex[pkg.*Slow.*.class], Unstable*</exclude> ++Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <exclude>%regex[pkg.*Slow.*.class], Unstable*</exclude> +Notice that these values are relative to the directory containing generated test classes of the project being tested. This directory is declared by the parameter testClassesDirectory which defaults to the POM property ${project.build.testOutputDirectory}, typically src/test/java unless overridden. + + @@ -3213,10 +2861,9 @@ index 000000000..3d369f203 + + failIfNoTests + boolean -+ 2.4 + false + true -+ Set this to "true" to cause a failure if there are no tests to run. Defaults to "false". ++ + + + failOnFlakeCount @@ -3229,14 +2876,9 @@ index 000000000..3d369f203 + + forkCount + java.lang.String -+ 2.14 + false + true -+ Option to specify the number of VMs to fork in parallel in order to execute the tests. When terminated with "C", the number part is multiplied with the number of CPU cores. Floating point value are only accepted together with "C". If set to "0", no VM is forked and all tests are executed within the main process. -+ -+Example values: "1.5C", "4" -+ -+The system properties and the argLine of the forked processes may contain the place holder string ${surefire.forkNumber}, which is replaced with a fixed number for each of the parallel forks, ranging from 1 to the effective value of forkCount times the maximum number of parallel Surefire executions in maven parallel builds, i.e. the effective value of the -T command line argument of maven core. ++ + + + forkNode @@ -3244,7 +2886,7 @@ index 000000000..3d369f203 + 3.0.0-M5 + false + true -+ This parameter configures the forked node. Currently, you can select the communication protocol, i.e. process pipes or TCP/IP sockets. The plugin uses process pipes by default which will be turned to TCP/IP in the version 3.0.0. Alternatively, you can implement your own factory and SPI. ++ This parameter configures the forked node. Currently, you can select the communication protocol, i.e. process pipes or TCP/IP sockets. The plugin uses process pipes by default which will be turned to TCP/IP in the version 3.0.0. Alternatively, you can implement your own factory and SPI. +See the documentation for more details: +https://maven.apache.org/plugins/maven-surefire-plugin/examples/process-communication.html <https://maven.apache.org/plugins/maven-surefire-plugin/examples/process-communication.html> + @@ -3267,13 +2909,9 @@ index 000000000..3d369f203 + + groups + java.lang.String -+ 2.2 + false + true -+ (TestNG/JUnit47 provider with JUnit4.8+ only and JUnit5+ provider since 2.22.0) Groups/categories/tags for this test. Only classes/methods/etc decorated with one of the groups/categories/tags specified here will be included in test run, if specified. -+For JUnit4 tests, this parameter forces the use of the 4.7 provider. For JUnit5 tests, this parameter forces the use of the JUnit platform provider. -+This parameter is ignored if the suiteXmlFiles parameter is specified. -+Since version 2.18.1 and JUnit 4.12, the @Category annotation type is automatically inherited from superclasses, see @java.lang.annotation.Inherited. Make sure that test class inheritance still makes sense together with @Category annotation of the JUnit 4.12 or higher appeared in superclass. ++ + + + includeJUnit5Engines @@ -3289,7 +2927,7 @@ index 000000000..3d369f203 + false + true + A list of <include> elements specifying the tests (by pattern) that should be included in testing. When not specified and when the test parameter is not specified, the default includes will be <includes> <include>**/Test*.java</include> <include>**/*Test.java</include> <include>**/*Tests.java</include> <include>**/*TestCase.java</include> </includes> Each include item may also contain a comma-separated sub-list of items, which will be treated as multiple <include> entries. -+Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <include>%regex[.*[Cat|Dog].*], Basic????, !Unstable*</include> <include>%regex[.*[Cat|Dog].*], !%regex[pkg.*Slow.*.class], pkg/**/*Fast*.java</include> ++Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <include>%regex[.*[Cat|Dog].*], Basic????, !Unstable*</include> <include>%regex[.*[Cat|Dog].*], !%regex[pkg.*Slow.*.class], pkg/**/*Fast*.java</include> +This parameter is ignored if the TestNG suiteXmlFiles parameter is specified. + +Notice that these values are relative to the directory containing generated test classes of the project being tested. This directory is declared by the parameter testClassesDirectory which defaults to the POM property ${project.build.testOutputDirectory}, typically src/test/java unless overridden. @@ -3300,68 +2938,50 @@ index 000000000..3d369f203 + 2.13 + false + true -+ A file containing include patterns. Blank lines, or lines starting with # are ignored. If includes are also specified, these patterns are appended. Example with path, simple and regex includes: */test/* **/NotIncludedByDefault.java %regex[.*Test.*|.*Not.*] ++ A file containing include patterns. Blank lines, or lines starting with # are ignored. If includes are also specified, these patterns are appended. Example with path, simple and regex includes: */test/* **/NotIncludedByDefault.java %regex[.*Test.*|.*Not.*] +Since 3.0.0-M6, method filtering support is provided in the inclusions file as well, example: pkg.SomeTest#testMethod + + + jdkToolchain + java.util.Map<java.lang.String, java.lang.String> -+ 3.0.0-M5 and Maven 3.3.x + false + true -+ -+Allow for configuration of the test jvm via maven toolchains. This permits a configuration where the project is built with one jvm and tested with another. This is similar to jvm, but avoids hardcoding paths. The two parameters are mutually exclusive (jvm wins) -+ -+Examples: -+(see Guide to Toolchains <https://maven.apache.org/guides/mini/guide-using-toolchains.html> for more info) <configuration> ... <jdkToolchain> <version>1.11</version> </jdkToolchain> </configuration> <configuration> ... <jdkToolchain> <version>1.8</version> <vendor>zulu</vendor> </jdkToolchain> </configuration> ++ + + + junitArtifactName + java.lang.String -+ 2.3.1 + false + true -+ Allows you to specify the name of the JUnit artifact. If not set, junit:junit will be used. ++ + + + jvm + java.lang.String -+ 2.1 + false + true -+ Option to specify the jvm (or path to the java executable) to use with the forking options. For the default, the jvm will be a new instance of the same VM as the one used to run Maven. JVM settings are not inherited from MAVEN_OPTS. ++ + + + objectFactory + java.lang.String -+ 2.5 + false + true -+ (TestNG only) Define the factory class used to create all test instances. ++ + + + parallel + java.lang.String -+ 2.2 + false + true -+ (TestNG provider) When you use the parameter parallel, TestNG will try to run all your test methods in separate threads, except for methods that depend on each other, which will be run in the same thread in order to respect their order of execution. Supports two values: classes or methods. -+(JUnit 4.7 provider) Supports values classes, methods, both to run in separate threads been controlled by threadCount. -+ -+Since version 2.16 (JUnit 4.7 provider), the value both is DEPRECATED. Use classesAndMethods instead. -+ -+Since version 2.16 (JUnit 4.7 provider), additional vales are available: -+suites, suitesAndClasses, suitesAndMethods, classesAndMethods, all. -+By default, Surefire does not execute tests in parallel. You can set the parameter parallel to none to explicitly disable parallel execution (e.g. when disabling parallel execution in special Maven profiles when executing coverage analysis). ++ + + + parallelOptimized + boolean -+ 2.17 + false + true -+ (JUnit 4.7 / provider only) The thread counts do not exceed the number of parallel suite, class runners and average number of methods per class if set to true. -+True by default. ++ + + + parallelTestsTimeoutForcedInSeconds @@ -3369,7 +2989,7 @@ index 000000000..3d369f203 + 2.16 + false + true -+ Stop executing queued parallel JUnit tests and interrupt currently running tests after a certain number of seconds. ++ Stop executing queued parallel JUnit tests and interrupt currently running tests after a certain number of seconds. +Example values: "3.5", "4" + +If set to 0, wait forever, never timing out. Makes sense with specified parallel different from "none". @@ -3380,7 +3000,7 @@ index 000000000..3d369f203 + 2.16 + false + true -+ Stop executing queued parallel JUnit tests after a certain number of seconds. ++ Stop executing queued parallel JUnit tests after a certain number of seconds. +Example values: "3.5", "4" + +If set to 0, wait forever, never timing out. Makes sense with specified parallel different from "none". @@ -3388,10 +3008,9 @@ index 000000000..3d369f203 + + perCoreThreadCount + boolean -+ 2.5 + false + true -+ (JUnit 4.7 provider) Indicates that threadCount, threadCountSuites, threadCountClasses, threadCountMethods are per cpu core. ++ + + + printSummary @@ -3403,30 +3022,23 @@ index 000000000..3d369f203 + + promoteUserPropertiesToSystemProperties + boolean -+ 3.4.0 + false + true -+ If set to true will also pass all user properties exposed via MavenSession#getUserProperties() as system properties to a provider. Those always take precedence over same named system properties set via any other means. -+See also: systemPropertyVariables ++ + + + properties + java.util.Properties -+ 2.4 + false + true -+ List of properties for configuring the testing provider. This is the preferred method of configuring TestNG and JUnit platform providers. -+ -+JUnit platform properties may be defined in a configurationParameters element: <properties> <configurationParameters> junit.jupiter.execution.parallel.enabled = true junit.jupiter.execution.parallel.mode.default = concurrent </configurationParameters> </properties> -+TestNG properties may be defined as distinct element blocks: <properties> <property> <name>parallel</name> <value>methods</value> </property> </properties> ++ + + + redirectTestOutputToFile + boolean -+ 2.3 + false + true -+ Set this to "true" to redirect the unit test standard output to a file (found in reportsDirectory/testName-output.txt). ++ + + + reportFormat @@ -3440,7 +3052,7 @@ index 000000000..3d369f203 + java.lang.String + false + true -+ Add custom text into report filename: TEST-testClassName-reportNameSuffix.xml, testClassName-reportNameSuffix.txt and testClassName-reportNameSuffix-output.txt. File TEST-testClassName-reportNameSuffix.xml has changed attributes 'testsuite'--'name' and 'testcase'--'classname' - reportNameSuffix is added to the attribute value. ++ + + + reportsDirectory @@ -3459,10 +3071,9 @@ index 000000000..3d369f203 + + reuseForks + boolean -+ 2.13 + false + true -+ Indicates if forked VMs can be reused. If set to "false", a new VM is forked for each test class to be executed. If set to "true", up to forkCount VMs will be forked and then reused to execute all tests. ++ + + + runOrder @@ -3470,13 +3081,13 @@ index 000000000..3d369f203 + 2.7 + false + true -+ Defines the order the tests will be run in. Supported values are alphabetical, reversealphabetical, random, hourly (alphabetical on even hours, reverse alphabetical on odd hours), failedfirst, balanced and filesystem. ++ Defines the order the tests will be run in. Supported values are alphabetical, reversealphabetical, random, hourly (alphabetical on even hours, reverse alphabetical on odd hours), failedfirst, balanced and filesystem. + -+Odd/Even for hourly is determined at the time the of scanning the classpath, meaning it could change during a multi-module build. ++Odd/Even for hourly is determined at the time the of scanning the classpath, meaning it could change during a multi-module build. + -+Failed first will run tests that failed on previous run first, as well as new tests for this run. ++Failed first will run tests that failed on previous run first, as well as new tests for this run. + -+Balanced is only relevant with parallel=classes, and will try to optimize the run-order of the tests reducing the overall execution time. Initially a statistics file is created and every next test run will reorder classes. ++Balanced is only relevant with parallel=classes, and will try to optimize the run-order of the tests reducing the overall execution time. Initially a statistics file is created and every next test run will reorder classes. + +Note that the statistics are stored in a file named .surefire-XXXXXXXXX beside pom.xml and should not be checked into version control. The "XXXXX" is the SHA1 checksum of the entire surefire configuration, so different configurations will have different statistics files, meaning if you change any configuration settings you will re-run once before new statistics data can be established. + @@ -3486,9 +3097,9 @@ index 000000000..3d369f203 + 3.0.0-M6 + false + true -+ Sets the random seed that will be used to order the tests if surefire.runOrder is set to random. ++ Sets the random seed that will be used to order the tests if surefire.runOrder is set to random. + -+If no seeds are set and surefire.runOrder is set to random, then the seed used will be outputted (search for "To reproduce ordering use flag -Dsurefire.runOrder.random.seed"). ++If no seeds are set and surefire.runOrder is set to random, then the seed used will be outputted (search for "To reproduce ordering use flag -Dsurefire.runOrder.random.seed"). + +To deterministically reproduce any random test order that was run before, simply set the seed to be the same value. + @@ -3498,11 +3109,11 @@ index 000000000..3d369f203 + 2.19 + false + true -+ After the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every forked JVM. -+The value is set to (shutdown=exit) by default (changed in version 3.0.0-M4). -+The parameter can be configured with other two values testset and kill. -+With(shutdown=testset) the test set may still continue to run in forked JVM. -+Using exit forked JVM executes System.exit(1) after the plugin process has received SIGTERM signal. ++ After the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every forked JVM. ++The value is set to (shutdown=exit) by default (changed in version 3.0.0-M4). ++The parameter can be configured with other two values testset and kill. ++With(shutdown=testset) the test set may still continue to run in forked JVM. ++Using exit forked JVM executes System.exit(1) after the plugin process has received SIGTERM signal. +Using kill the JVM executes Runtime.halt(1) and kills itself. + + @@ -3510,7 +3121,7 @@ index 000000000..3d369f203 + boolean + false + true -+ Set this to "true" to bypass unit tests entirely. Its use is NOT RECOMMENDED, especially if you enable it using the "maven.test.skip" property, because maven.test.skip disables both running the tests and compiling the tests. Consider using the skipTests parameter instead. ++ + + + skipAfterFailureCount @@ -3526,20 +3137,17 @@ index 000000000..3d369f203 + + skipExec + boolean -+ 2.3 -+ Use skipTests instead. ++ No reason given + false + true -+ This old parameter is just like skipTests, but bound to the old property "maven.test.skip.exec". ++ + + + skipTests + boolean -+ 2.4 + false + true -+ Set this to "true" to skip running tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion. -+Failsafe plugin deprecated the parameter skipTests and the parameter will be removed in Failsafe 3.0.0 as it is a source of conflicts between Failsafe and Surefire plugin. ++ + + + statelessTestsetInfoReporter @@ -3553,7 +3161,7 @@ index 000000000..3d369f203 + org.apache.maven.plugin.surefire.extensions.SurefireStatelessReporter + false + true -+ Note: use the legacy system property disableXmlReport set to true to disable the report. ++ + + + suiteXmlFiles @@ -3567,11 +3175,10 @@ index 000000000..3d369f203 + + systemProperties + java.util.Properties -+ Use systemPropertyVariables instead. ++ No reason given + false + true -+ List of System properties to pass to a provider. -+See also: systemPropertyVariables for how the effective provider properties are calculated ++ + + + systemPropertiesFile @@ -3579,48 +3186,32 @@ index 000000000..3d369f203 + false + true + Properties file being used as system properties passed to the provider. -+See also: systemPropertyVariables for how the effective provider properties are calculated ++See also: AbstractSurefireMojo#systemPropertyVariables systemPropertyVariables for how the effective provider properties are calculated + + + systemPropertyVariables + java.util.Map<java.lang.String, java.lang.String> -+ 2.5 + false + true -+ List of System properties to pass to a provider. The effective system properties given to a provider are contributed from several sources: -+* properties set via argLine with -D (only for forked executions) -+* systemProperties -+* getSystemPropertiesFile() (set via parameter systemPropertiesFile on some goals) -+* systemPropertyVariables -+* User properties from MavenSession#getUserProperties(), usually set via CLI options given with -D on the current Maven process (only used as source if promoteUserPropertiesToSystemProperties is true) Later sources may overwrite same named properties from earlier sources, that means for example that one cannot overwrite user properties with either systemProperties, getSystemPropertiesFile() or systemPropertyVariables. -+Certain properties may only be overwritten via argLine (applicable only for forked executions) because their values are cached and only evaluated at the start of the JRE. Those include: -+ -+* java.library.path -+* file.encoding -+* jdk.map.althashing.threshold -+* line.separator -+See also: systemProperties ++ + + + tempDir + java.lang.String -+ 2.20 + false + true -+ Relative path to temporary-surefire-boot directory containing internal Surefire temporary files. -+The temporary-surefire-boot directory is project.build.directory on most platforms or system default temporary-directory specified by the system property java.io.tmpdir on Windows (see SUREFIRE-1400 <https://issues.apache.org/jira/browse/SUREFIRE-1400>). -+It is deleted after the test set has completed. ++ + + + test + java.lang.String + false + true -+ Specify this parameter to run individual tests by file name, overriding the parameter includes and excludes. Each pattern you specify here will be used to create an include pattern formatted like **/${test}.java, so you can just type -Dtest=MyTest to run a single test called "foo/MyTest.java". The test patterns prefixed with a ! will be excluded. -+This parameter overrides the parameter includes, excludes, and the TestNG parameter suiteXmlFiles. ++ Specify this parameter to run individual tests by file name, overriding the parameter includes and excludes. Each pattern you specify here will be used to create an include pattern formatted like **/${test}.java, so you can just type -Dtest=MyTest to run a single test called "foo/MyTest.java". The test patterns prefixed with a ! will be excluded. ++This parameter overrides the parameter includes, excludes, and the TestNG parameter suiteXmlFiles. +Since 2.7.3, you can execute a limited number of methods in the test by adding #myMethod or #my*ethod. For example, -Dtest=MyTest#myMethod. This is supported for junit 4.x and TestNg. + -+Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): "-Dtest=???Test, !Unstable*, pkg/**/Ci*leTest.java, *Test#test*One+testTwo?????, #fast*+slowTest" or e.g. "-Dtest=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyTest.class#one.*|two.*], %regex[#fast.*|slow.*]" ++Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): "-Dtest=???Test, !Unstable*, pkg/**/Ci*leTest.java, *Test#test*One+testTwo?????, #fast*+slowTest" or e.g. "-Dtest=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyTest.class#one.*|two.*], %regex[#fast.*|slow.*]" +The Parameterized JUnit runner describes test methods using an index in brackets, so the non-regex method pattern would become: #testMethod[*]. If using @Parameters(name="{index}: fib({0})={1}") and selecting the index e.g. 5 in pattern, the non-regex method pattern would become #testMethod[5:*]. + + @@ -3628,7 +3219,7 @@ index 000000000..3d369f203 + java.io.File + false + true -+ The directory containing generated test classes of the project being tested. This will be included at the beginning of the test classpath. ++ + + + testFailureIgnore @@ -3640,69 +3231,51 @@ index 000000000..3d369f203 + + testNGArtifactName + java.lang.String -+ 2.3.1 + false + true -+ Allows you to specify the name of the TestNG artifact. If not set, org.testng:testng will be used. ++ + + + testSourceDirectory + java.io.File -+ 2.2 + false + true -+ The test source directory containing test class sources. Important only for TestNG HTML reports. ++ + + + threadCount + int -+ 2.2 + false + true -+ (TestNG/JUnit 4.7 provider) The attribute thread-count allows you to specify how many threads should be allocated for this execution. Only makes sense to use in conjunction with the parallel parameter. ++ + + + threadCountClasses + int -+ 2.16 + false + true -+ (JUnit 4.7 provider) This attribute allows you to specify the concurrency in test classes, i.e.: -+* number of concurrent classes if threadCount is 0 or unspecified -+* limited classes concurrency if useUnlimitedThreads is set to true -+* if threadCount and certain thread-count parameters are > 0 for parallel, the concurrency is computed from ratio. For instance parallel=all and the ratio between threadCountSuites:threadCountClasses:threadCountMethods is 2:3:5, there is 30% of threadCount in concurrent classes. -+* as in the previous case but without this leaf thread-count. Example: parallel=suitesAndClasses, threadCount=16, threadCountSuites=5, threadCountClasses is unspecified leaf, the number of concurrent classes is varying from >= 11 to 14 or 15. The threadCountSuites become given number of threads. Only makes sense to use in conjunction with the parallel parameter. The default value 0 behaves same as unspecified one. ++ + + + threadCountMethods + int -+ 2.16 + false + true -+ (JUnit 4.7 provider) This attribute allows you to specify the concurrency in test methods, i.e.: -+* number of concurrent methods if threadCount is 0 or unspecified -+* limited concurrency of methods if useUnlimitedThreads is set to true -+* if threadCount and certain thread-count parameters are > 0 for parallel, the concurrency is computed from ratio. For instance parallel=all and the ratio between threadCountSuites:threadCountClasses:threadCountMethods is 2:3:5, there is 50% of threadCount which appears in concurrent methods. -+* as in the previous case but without this leaf thread-count. Example: parallel=all, threadCount=16, threadCountSuites=2, threadCountClasses=3, but threadCountMethods is unspecified leaf, the number of concurrent methods is varying from >= 11 to 14 or 15. The threadCountSuites and threadCountClasses become given number of threads. Only makes sense to use in conjunction with the parallel parameter. The default value 0 behaves same as unspecified one. ++ + + + threadCountSuites + int -+ 2.16 + false + true -+ (JUnit 4.7 provider) This attribute allows you to specify the concurrency in test suites, i.e.: -+* number of concurrent suites if threadCount is 0 or unspecified -+* limited suites concurrency if useUnlimitedThreads is set to true -+* if threadCount and certain thread-count parameters are > 0 for parallel, the concurrency is computed from ratio. For instance parallel=all and the ratio between threadCountSuites:threadCountClasses:threadCountMethods is 2:3:5, there is 20% of threadCount which appeared in concurrent suites. Only makes sense to use in conjunction with the parallel parameter. The default value 0 behaves same as unspecified one. ++ + + + trimStackTrace + boolean -+ 2.2 + false + true -+ Whether to trim the stack trace in the reports to just the lines within the test, or show the full trace. ++ + + + useFile @@ -3717,7 +3290,7 @@ index 000000000..3d369f203 + 2.4.3 + false + true -+ By default, Surefire forks your tests using a manifest-only JAR; set this parameter to "false" to force it to launch your tests with a plain old Java classpath. (See the http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html <http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html> for a more detailed explanation of manifest-only JARs and their benefits.) ++ By default, Surefire forks your tests using a manifest-only JAR; set this parameter to "false" to force it to launch your tests with a plain old Java classpath. (See the http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html <http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html> for a more detailed explanation of manifest-only JARs and their benefits.) +Beware, setting this to "false" may cause your tests to fail on Windows if your classpath is too long. + + @@ -3726,7 +3299,7 @@ index 000000000..3d369f203 + 3.0.0-M2 + false + true -+ When true, uses the modulepath when executing with JDK 9+ and module-info.java is present. When false, always uses the classpath. ++ When true, uses the modulepath when executing with JDK 9+ and module-info.java is present. When false, always uses the classpath. +Defaults to true. + + @@ -3740,18 +3313,16 @@ index 000000000..3d369f203 + + useUnlimitedThreads + boolean -+ 2.5 + false + true -+ (JUnit 4.7 provider) Indicates that the thread pool will be unlimited. The parallel parameter and the actual number of classes/methods will decide. Setting this to "true" effectively disables perCoreThreadCount and threadCount. Defaults to "false". ++ + + + workingDirectory + java.io.File -+ 2.1.3 + false + true -+ Command line working directory. ++ + + + @@ -3763,7 +3334,7 @@ index 000000000..3d369f203 + ${maven.test.dependency.excludes} + ${maven.surefire.debug} + ${dependenciesToScan} -+ ${disableXmlReport} ++ ${disableXmlReport} + ${enableAssertions} + ${enableOutErrElements} + ${surefire.enableProcessChecker} @@ -3831,12 +3402,10 @@ index 000000000..3d369f203 + + + -diff --git a/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml b/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml -new file mode 100644 -index 000000000..3a76ee7b9 ---- /dev/null -+++ b/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml -@@ -0,0 +1,1145 @@ +diff -urEbwBN a/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml b/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml +--- a/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml 1970-01-01 01:00:00.000000000 +0100 ++++ b/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml 2024-11-04 10:48:40.175717003 +0100 +@@ -0,0 +1,1012 @@ + + + @@ -3925,54 +3494,37 @@ index 000000000..3a76ee7b9 + + additionalClasspathDependencies + java.util.List -+ 3.2 + false + true -+ Additional Maven dependencies to be added to the test classpath at runtime. Each element supports the parametrization like documented in POM Reference: Dependencies <https://maven.apache.org/pom.html#dependencies>. -+Those dependencies are automatically collected (i.e. have their full dependency tree calculated) and then all underlying artifacts are resolved from the repository (including their transitive dependencies). Afterwards the resolved artifacts are filtered to only contain compile and runtime scoped ones and appended to the test classpath at runtime (after the ones from additionalClasspathElements). -+ -+The following differences to regular project dependency resolving apply: -+ -+* The dependency management from the project is not taken into account. -+* Conflicts between the different items and the project dependencies are not resolved. -+* Only external dependencies (outside the current Maven reactor) are supported. ++ + + + additionalClasspathElements + java.lang.String[] -+ 2.4 + false + true -+ Additional elements to be appended to the test classpath at runtime. Each element must be a file system path to a JAR file or a directory containing classes. No wildcards are allowed here. ++ + + + argLine + java.lang.String -+ 2.1 + false + true -+ Arbitrary JVM options to set on the command line. Only effective for forked executions. -+ -+Since the Version 2.17 using an alternate syntax for argLine, @{...} allows late replacement of properties when the plugin is executed, so properties that have been modified by other plugins will be picked up correctly. See the Frequently Asked Questions page with more details: -+http://maven.apache.org/surefire/maven-surefire-plugin/faq.html <http://maven.apache.org/surefire/maven-surefire-plugin/faq.html> -+http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html <http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html> -+See also: forkCount ++ + + + basedir + java.io.File + true + false -+ The base directory of the project being tested. This can be obtained in your integration test via System.getProperty("basedir"). ++ + + + childDelegation + boolean -+ 2.1 + false + true -+ When false it makes tests run using the standard classloader delegation instead of the default Maven isolated classloader. Only used when forking (forkCount is greater than zero). -+Setting it to false helps with some problems caused by conflicts between xml parsers in the classpath and the Java 5 provider parser. ++ + + + classesDirectory @@ -3984,27 +3536,16 @@ index 000000000..3a76ee7b9 + + classpathDependencyExcludes + java.lang.String[] -+ 2.6 + false + true -+ List of dependencies to exclude from the test classpath at runtime. Each item is passed as pattern to org.apache.maven.shared.artifact.filter.PatternIncludesArtifactFilter. The pattern is matched against the following artifact ids: -+* groupId:artifactId (Short ID) -+* groupId:artifactId:type:classifier (Dependency Conflict ID) -+* groupId:artifactId:type:classifier:version (Full ID) The matching algorithm is described in detail in Advanced Artifact-Matching <https://maven.apache.org/plugins/maven-assembly-plugin/advanced-descriptor-topics.html#advanced-artifact-matching-in-includes-and-excludes> for the maven-assembly-plugin. This parameter behaves the same as the excludes pattern described there. The dependency matching is applied to the project dependency IDs (including transitive ones) after resolving, i.e. excluding one dependency will not exclude its transitive dependencies! ++ + + + classpathDependencyScopeExclude + java.lang.String -+ 2.6 + false + true -+ A dependency scope to exclude from the test classpath at runtime. The scope should be one of the scopes defined by org.apache.maven.artifact.Artifact. This includes the following: -+ -+* compile - system, provided, compile -+* runtime - compile, runtime -+* compile+runtime - system, provided, compile, runtime -+* runtime+system - system, compile, runtime -+* test - system, provided, compile, runtime, test ++ + + + consoleOutputReporter @@ -4024,51 +3565,31 @@ index 000000000..3a76ee7b9 + + dependenciesToScan + java.lang.String[] -+ 2.15 + false + true -+ List of dependencies to scan for test classes to include in the test run. The child elements of this element must be <dependency> elements, and the contents of each of these elements must be a string which follows the general form: -+groupId[:artifactId[:type[:classifier][:version]]] -+ -+The wildcard character * can be used within the sub parts of those composite identifiers to do glob-like pattern matching. The classifier may be omitted when matching dependencies without a classifier. -+ -+Examples: -+ -+* group or, equivalently, group:* -+* g*p:*rtifac* -+* group:*:jar -+* group:artifact:*:1.0.0 (no classifier) -+* group:*:test-jar:tests -+* *:artifact:*:*:1.0.0 -+Since version 2.22.0 you can scan for test classes from a project dependency of your multi-module project. -+ -+In versions before 3.0.0-M4, only groupId:artifactId is supported. -+ ++ + + + disableXmlReport -+ boolean -+ 2.2 ++ java.lang.Boolean + No reason given + false + true -+ Flag to disable the generation of report files in xml format. Deprecated since 3.0.0-M4. Instead use disable within statelessTestsetReporter since of 3.0.0-M6. ++ + + + enableAssertions + boolean -+ 2.3.1 + false + true -+ By default, Surefire enables JVM assertions for the execution of your test cases. To disable the assertions, set this flag to "false". ++ + + + enableOutErrElements + boolean -+ 3.3.1 + false + true -+ Flag for including/excluding <system-out /> and <system-err /> elements for successfully passed tests in XML reports. Note that the default value may change to false is a future version. ++ + + + enableProcessChecker @@ -4076,24 +3597,23 @@ index 000000000..3a76ee7b9 + 3.0.0-M4 + false + true -+ Since 3.0.0-M4 the process checkers are disabled. You can enable them namely by setting ping and native or all in this parameter. -+The checker is useful in situations when you kill the build on a CI system and you want the Surefire forked JVM to kill the tests asap and free all handlers on the file system been previously used by the JVM and by the tests. -+The ping should be safely used together with ZGC or Shenandoah Garbage Collector. Due to the ping relies on timing of the PING (triggered every 30 seconds), slow GCs may pause the timers and pretend that the parent process of the forked JVM does not exist. -+The native is very fast checker. It is useful mechanism on Unix based systems, Linux distributions and Alpine/BusyBox Linux. See the JIRA SUREFIRE-1631 <https://issues.apache.org/jira/browse/SUREFIRE-1631> for Windows issues. -+Another useful configuration parameter is forkedProcessTimeoutInSeconds. ++ Since 3.0.0-M4 the process checkers are disabled. You can enable them namely by setting ping and native or all in this parameter. ++The checker is useful in situations when you kill the build on a CI system and you want the Surefire forked JVM to kill the tests asap and free all handlers on the file system been previously used by the JVM and by the tests. ++The ping should be safely used together with ZGC or Shenandoah Garbage Collector. Due to the ping relies on timing of the PING (triggered every 30 seconds), slow GCs may pause the timers and pretend that the parent process of the forked JVM does not exist. ++The native is very fast checker. It is useful mechanism on Unix based systems, Linux distributions and Alpine/BusyBox Linux. See the JIRA SUREFIRE-1631 <https://issues.apache.org/jira/browse/SUREFIRE-1631> for Windows issues. ++Another useful configuration parameter is forkedProcessTimeoutInSeconds. +See the Frequently Asked Questions page with more details: -+http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm> -+http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm> -+Example of use: ++http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm> ++http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm <http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm> ++Example of use: +mvn test -Dsurefire.enableProcessChecker=all + + + enablePropertiesElement + boolean -+ 3.3.1 + false + true -+ Flag for including/excluding <properties /> element for successfully passed tests in XML reports. ++ + + + encoding @@ -4106,10 +3626,9 @@ index 000000000..3a76ee7b9 + + environmentVariables + java.util.Map -+ 2.1.3 + false + true -+ Additional environment variables to set on the command line. ++ + + + excludeJUnit5Engines @@ -4125,32 +3644,28 @@ index 000000000..3a76ee7b9 + 3.0.0-M4 + false + true -+ You can selectively exclude individual environment variables by enumerating their keys. -+The environment is a system-dependent mapping from keys to values which is inherited from the Maven process to the forked Surefire processes. The keys must literally (case sensitive) match in order to exclude their environment variable. -+Example to exclude three environment variables: ++ You can selectively exclude individual environment variables by enumerating their keys. ++The environment is a system-dependent mapping from keys to values which is inherited from the Maven process to the forked Surefire processes. The keys must literally (case sensitive) match in order to exclude their environment variable. ++Example to exclude three environment variables: +mvn test -Dsurefire.excludedEnvironmentVariables=ACME1,ACME2,ACME3 + + + excludedGroups + java.lang.String -+ 2.2 + false + true -+ (TestNG/JUnit47 provider with JUnit4.8+ only and JUnit5+ provider since 2.22.0) Excluded groups/categories/tags. Any methods/classes/etc with one of the groups/categories/tags specified in this list will specifically not be run. -+For JUnit4, this parameter forces the use of the 4.7 provider. For JUnit5, this parameter forces the use of the JUnit platform provider. -+This parameter is ignored if the suiteXmlFiles parameter is specified. -+Since version 2.18.1 and JUnit 4.12, the @Category annotation type is automatically inherited from superclasses, see @java.lang.annotation.Inherited. Make sure that test class inheritance still makes sense together with @Category annotation of the JUnit 4.12 or higher appeared in superclass. ++ + + + excludes + java.util.List + false + true -+ A list of <exclude> elements specifying the tests (by pattern) that should be excluded in testing. When not specified and when the test parameter is not specified, the default excludes will be -+<excludes> <exclude>**/*$*</exclude> </excludes> (which excludes all inner classes). -+This parameter is ignored if the TestNG suiteXmlFiles parameter is specified. ++ A list of <exclude> elements specifying the tests (by pattern) that should be excluded in testing. When not specified and when the test parameter is not specified, the default excludes will be ++<excludes> <exclude>**/*$*</exclude> </excludes> (which excludes all inner classes). ++This parameter is ignored if the TestNG suiteXmlFiles parameter is specified. +Each exclude item may also contain a comma-separated sub-list of items, which will be treated as multiple <exclude> entries. -+Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <exclude>%regex[pkg.*Slow.*.class], Unstable*</exclude> ++Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <exclude>%regex[pkg.*Slow.*.class], Unstable*</exclude> +Notice that these values are relative to the directory containing generated test classes of the project being tested. This directory is declared by the parameter testClassesDirectory which defaults to the POM property ${project.build.testOutputDirectory}, typically src/test/java unless overridden. + + @@ -4173,10 +3688,9 @@ index 000000000..3a76ee7b9 + + failIfNoTests + boolean -+ 2.4 + false + true -+ Set this to "true" to cause a failure if there are no tests to run. Defaults to "false". ++ + + + failOnFlakeCount @@ -4189,14 +3703,9 @@ index 000000000..3a76ee7b9 + + forkCount + java.lang.String -+ 2.14 + false + true -+ Option to specify the number of VMs to fork in parallel in order to execute the tests. When terminated with "C", the number part is multiplied with the number of CPU cores. Floating point value are only accepted together with "C". If set to "0", no VM is forked and all tests are executed within the main process. -+ -+Example values: "1.5C", "4" -+ -+The system properties and the argLine of the forked processes may contain the place holder string ${surefire.forkNumber}, which is replaced with a fixed number for each of the parallel forks, ranging from 1 to the effective value of forkCount times the maximum number of parallel Surefire executions in maven parallel builds, i.e. the effective value of the -T command line argument of maven core. ++ + + + forkNode @@ -4204,7 +3713,7 @@ index 000000000..3a76ee7b9 + 3.0.0-M5 + false + true -+ This parameter configures the forked node. Currently, you can select the communication protocol, i.e. process pipes or TCP/IP sockets. The plugin uses process pipes by default which will be turned to TCP/IP in the version 3.0.0. Alternatively, you can implement your own factory and SPI. ++ This parameter configures the forked node. Currently, you can select the communication protocol, i.e. process pipes or TCP/IP sockets. The plugin uses process pipes by default which will be turned to TCP/IP in the version 3.0.0. Alternatively, you can implement your own factory and SPI. +See the documentation for more details: +https://maven.apache.org/plugins/maven-surefire-plugin/examples/process-communication.html <https://maven.apache.org/plugins/maven-surefire-plugin/examples/process-communication.html> + @@ -4227,13 +3736,9 @@ index 000000000..3a76ee7b9 + + groups + java.lang.String -+ 2.2 + false + true -+ (TestNG/JUnit47 provider with JUnit4.8+ only and JUnit5+ provider since 2.22.0) Groups/categories/tags for this test. Only classes/methods/etc decorated with one of the groups/categories/tags specified here will be included in test run, if specified. -+For JUnit4 tests, this parameter forces the use of the 4.7 provider. For JUnit5 tests, this parameter forces the use of the JUnit platform provider. -+This parameter is ignored if the suiteXmlFiles parameter is specified. -+Since version 2.18.1 and JUnit 4.12, the @Category annotation type is automatically inherited from superclasses, see @java.lang.annotation.Inherited. Make sure that test class inheritance still makes sense together with @Category annotation of the JUnit 4.12 or higher appeared in superclass. ++ + + + includeJUnit5Engines @@ -4249,7 +3754,7 @@ index 000000000..3a76ee7b9 + false + true + A list of <include> elements specifying the tests (by pattern) that should be included in testing. When not specified and when the test parameter is not specified, the default includes will be <includes> <include>**/Test*.java</include> <include>**/*Test.java</include> <include>**/*Tests.java</include> <include>**/*TestCase.java</include> </includes> Each include item may also contain a comma-separated sub-list of items, which will be treated as multiple <include> entries. -+Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <include>%regex[.*[Cat|Dog].*], Basic????, !Unstable*</include> <include>%regex[.*[Cat|Dog].*], !%regex[pkg.*Slow.*.class], pkg/**/*Fast*.java</include> ++Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): <include>%regex[.*[Cat|Dog].*], Basic????, !Unstable*</include> <include>%regex[.*[Cat|Dog].*], !%regex[pkg.*Slow.*.class], pkg/**/*Fast*.java</include> +This parameter is ignored if the TestNG suiteXmlFiles parameter is specified. + +Notice that these values are relative to the directory containing generated test classes of the project being tested. This directory is declared by the parameter testClassesDirectory which defaults to the POM property ${project.build.testOutputDirectory}, typically src/test/java unless overridden. @@ -4260,75 +3765,57 @@ index 000000000..3a76ee7b9 + 2.13 + false + true -+ A file containing include patterns. Blank lines, or lines starting with # are ignored. If includes are also specified, these patterns are appended. Example with path, simple and regex includes: */test/* **/NotIncludedByDefault.java %regex[.*Test.*|.*Not.*] ++ A file containing include patterns. Blank lines, or lines starting with # are ignored. If includes are also specified, these patterns are appended. Example with path, simple and regex includes: */test/* **/NotIncludedByDefault.java %regex[.*Test.*|.*Not.*] +Since 3.0.0-M6, method filtering support is provided in the inclusions file as well, example: pkg.SomeTest#testMethod + + + jdkToolchain + java.util.Map -+ 3.0.0-M5 and Maven 3.3.x + false + true -+ -+Allow for configuration of the test jvm via maven toolchains. This permits a configuration where the project is built with one jvm and tested with another. This is similar to jvm, but avoids hardcoding paths. The two parameters are mutually exclusive (jvm wins) -+ -+Examples: -+(see Guide to Toolchains <https://maven.apache.org/guides/mini/guide-using-toolchains.html> for more info) <configuration> ... <jdkToolchain> <version>1.11</version> </jdkToolchain> </configuration> <configuration> ... <jdkToolchain> <version>1.8</version> <vendor>zulu</vendor> </jdkToolchain> </configuration> ++ + + + junitArtifactName + java.lang.String -+ 2.3.1 + false + true -+ Allows you to specify the name of the JUnit artifact. If not set, junit:junit will be used. ++ + + + jvm + java.lang.String -+ 2.1 + false + true -+ Option to specify the jvm (or path to the java executable) to use with the forking options. For the default, the jvm will be a new instance of the same VM as the one used to run Maven. JVM settings are not inherited from MAVEN_OPTS. ++ + + + objectFactory + java.lang.String -+ 2.5 + false + true -+ (TestNG only) Define the factory class used to create all test instances. ++ + + + parallel + java.lang.String -+ 2.2 + false + true -+ (TestNG provider) When you use the parameter parallel, TestNG will try to run all your test methods in separate threads, except for methods that depend on each other, which will be run in the same thread in order to respect their order of execution. Supports two values: classes or methods. -+(JUnit 4.7 provider) Supports values classes, methods, both to run in separate threads been controlled by threadCount. -+ -+Since version 2.16 (JUnit 4.7 provider), the value both is DEPRECATED. Use classesAndMethods instead. -+ -+Since version 2.16 (JUnit 4.7 provider), additional vales are available: -+suites, suitesAndClasses, suitesAndMethods, classesAndMethods, all. -+By default, Surefire does not execute tests in parallel. You can set the parameter parallel to none to explicitly disable parallel execution (e.g. when disabling parallel execution in special Maven profiles when executing coverage analysis). ++ + + + parallelMavenExecution + java.lang.Boolean + false + false -+ Parallel Maven Execution. ++ + + + parallelOptimized + boolean -+ 2.17 + false + true -+ (JUnit 4.7 / provider only) The thread counts do not exceed the number of parallel suite, class runners and average number of methods per class if set to true. -+True by default. ++ + + + parallelTestsTimeoutForcedInSeconds @@ -4336,7 +3823,7 @@ index 000000000..3a76ee7b9 + 2.16 + false + true -+ Stop executing queued parallel JUnit tests and interrupt currently running tests after a certain number of seconds. ++ Stop executing queued parallel JUnit tests and interrupt currently running tests after a certain number of seconds. +Example values: "3.5", "4" + +If set to 0, wait forever, never timing out. Makes sense with specified parallel different from "none". @@ -4347,7 +3834,7 @@ index 000000000..3a76ee7b9 + 2.16 + false + true -+ Stop executing queued parallel JUnit tests after a certain number of seconds. ++ Stop executing queued parallel JUnit tests after a certain number of seconds. +Example values: "3.5", "4" + +If set to 0, wait forever, never timing out. Makes sense with specified parallel different from "none". @@ -4355,25 +3842,23 @@ index 000000000..3a76ee7b9 + + perCoreThreadCount + boolean -+ 2.5 + false + true -+ (JUnit 4.7 provider) Indicates that threadCount, threadCountSuites, threadCountClasses, threadCountMethods are per cpu core. ++ + + + pluginArtifactMap + java.util.Map + true + false -+ Map of plugin artifacts. ++ + + + pluginDescriptor + org.apache.maven.plugin.descriptor.PluginDescriptor -+ 2.12 + true + false -+ Information about this plugin, mainly used to lookup this plugin's configuration from the currently executing project. ++ + + + printSummary @@ -4387,50 +3872,42 @@ index 000000000..3a76ee7b9 + org.apache.maven.project.MavenProject + true + false -+ The Maven Project Object. ++ + + + projectArtifactMap + java.util.Map + true + false -+ Map of project artifacts. ++ + + + projectBuildDirectory + java.io.File -+ 2.20 + true + false -+ Read-only parameter with value of Maven property project.build.directory. ++ + + + promoteUserPropertiesToSystemProperties + boolean -+ 3.4.0 + false + true -+ If set to true will also pass all user properties exposed via MavenSession#getUserProperties() as system properties to a provider. Those always take precedence over same named system properties set via any other means. -+See also: systemPropertyVariables ++ + + + properties + java.util.Properties -+ 2.4 + false + true -+ List of properties for configuring the testing provider. This is the preferred method of configuring TestNG and JUnit platform providers. -+ -+JUnit platform properties may be defined in a configurationParameters element: <properties> <configurationParameters> junit.jupiter.execution.parallel.enabled = true junit.jupiter.execution.parallel.mode.default = concurrent </configurationParameters> </properties> -+TestNG properties may be defined as distinct element blocks: <properties> <property> <name>parallel</name> <value>methods</value> </property> </properties> ++ + + + redirectTestOutputToFile + boolean -+ 2.3 + false + true -+ Set this to "true" to redirect the unit test standard output to a file (found in reportsDirectory/testName-output.txt). ++ + + + reportFormat @@ -4444,7 +3921,7 @@ index 000000000..3a76ee7b9 + java.lang.String + false + true -+ Add custom text into report filename: TEST-testClassName-reportNameSuffix.xml, testClassName-reportNameSuffix.txt and testClassName-reportNameSuffix-output.txt. File TEST-testClassName-reportNameSuffix.xml has changed attributes 'testsuite'--'name' and 'testcase'--'classname' - reportNameSuffix is added to the attribute value. ++ + + + reportsDirectory @@ -4463,10 +3940,9 @@ index 000000000..3a76ee7b9 + + reuseForks + boolean -+ 2.13 + false + true -+ Indicates if forked VMs can be reused. If set to "false", a new VM is forked for each test class to be executed. If set to "true", up to forkCount VMs will be forked and then reused to execute all tests. ++ + + + runOrder @@ -4474,13 +3950,13 @@ index 000000000..3a76ee7b9 + 2.7 + false + true -+ Defines the order the tests will be run in. Supported values are alphabetical, reversealphabetical, random, hourly (alphabetical on even hours, reverse alphabetical on odd hours), failedfirst, balanced and filesystem. ++ Defines the order the tests will be run in. Supported values are alphabetical, reversealphabetical, random, hourly (alphabetical on even hours, reverse alphabetical on odd hours), failedfirst, balanced and filesystem. + -+Odd/Even for hourly is determined at the time the of scanning the classpath, meaning it could change during a multi-module build. ++Odd/Even for hourly is determined at the time the of scanning the classpath, meaning it could change during a multi-module build. + -+Failed first will run tests that failed on previous run first, as well as new tests for this run. ++Failed first will run tests that failed on previous run first, as well as new tests for this run. + -+Balanced is only relevant with parallel=classes, and will try to optimize the run-order of the tests reducing the overall execution time. Initially a statistics file is created and every next test run will reorder classes. ++Balanced is only relevant with parallel=classes, and will try to optimize the run-order of the tests reducing the overall execution time. Initially a statistics file is created and every next test run will reorder classes. + +Note that the statistics are stored in a file named .surefire-XXXXXXXXX beside pom.xml and should not be checked into version control. The "XXXXX" is the SHA1 checksum of the entire surefire configuration, so different configurations will have different statistics files, meaning if you change any configuration settings you will re-run once before new statistics data can be established. + @@ -4490,9 +3966,9 @@ index 000000000..3a76ee7b9 + 3.0.0-M6 + false + true -+ Sets the random seed that will be used to order the tests if surefire.runOrder is set to random. ++ Sets the random seed that will be used to order the tests if surefire.runOrder is set to random. + -+If no seeds are set and surefire.runOrder is set to random, then the seed used will be outputted (search for "To reproduce ordering use flag -Dsurefire.runOrder.random.seed"). ++If no seeds are set and surefire.runOrder is set to random, then the seed used will be outputted (search for "To reproduce ordering use flag -Dsurefire.runOrder.random.seed"). + +To deterministically reproduce any random test order that was run before, simply set the seed to be the same value. + @@ -4501,7 +3977,7 @@ index 000000000..3a76ee7b9 + org.apache.maven.execution.MavenSession + true + false -+ The current build session instance. ++ + + + shutdown @@ -4509,11 +3985,11 @@ index 000000000..3a76ee7b9 + 2.19 + false + true -+ After the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every forked JVM. -+The value is set to (shutdown=exit) by default (changed in version 3.0.0-M4). -+The parameter can be configured with other two values testset and kill. -+With(shutdown=testset) the test set may still continue to run in forked JVM. -+Using exit forked JVM executes System.exit(1) after the plugin process has received SIGTERM signal. ++ After the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every forked JVM. ++The value is set to (shutdown=exit) by default (changed in version 3.0.0-M4). ++The parameter can be configured with other two values testset and kill. ++With(shutdown=testset) the test set may still continue to run in forked JVM. ++Using exit forked JVM executes System.exit(1) after the plugin process has received SIGTERM signal. +Using kill the JVM executes Runtime.halt(1) and kills itself. + + @@ -4521,7 +3997,7 @@ index 000000000..3a76ee7b9 + boolean + false + true -+ Set this to "true" to bypass unit tests entirely. Its use is NOT RECOMMENDED, especially if you enable it using the "maven.test.skip" property, because maven.test.skip disables both running the tests and compiling the tests. Consider using the skipTests parameter instead. ++ + + + skipAfterFailureCount @@ -4537,20 +4013,17 @@ index 000000000..3a76ee7b9 + + skipExec + boolean -+ 2.3 -+ Use skipTests instead. ++ No reason given + false + true -+ This old parameter is just like skipTests, but bound to the old property "maven.test.skip.exec". ++ + + + skipTests + boolean -+ 2.4 + false + true -+ Set this to "true" to skip running tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion. -+Failsafe plugin deprecated the parameter skipTests and the parameter will be removed in Failsafe 3.0.0 as it is a source of conflicts between Failsafe and Surefire plugin. ++ + + + statelessTestsetInfoReporter @@ -4564,7 +4037,7 @@ index 000000000..3a76ee7b9 + org.apache.maven.plugin.surefire.extensions.SurefireStatelessReporter + false + true -+ Note: use the legacy system property disableXmlReport set to true to disable the report. ++ + + + suiteXmlFiles @@ -4578,11 +4051,10 @@ index 000000000..3a76ee7b9 + + systemProperties + java.util.Properties -+ Use systemPropertyVariables instead. ++ No reason given + false + true -+ List of System properties to pass to a provider. -+See also: systemPropertyVariables for how the effective provider properties are calculated ++ + + + systemPropertiesFile @@ -4590,48 +4062,32 @@ index 000000000..3a76ee7b9 + false + true + Properties file being used as system properties passed to the provider. -+See also: systemPropertyVariables for how the effective provider properties are calculated ++See also: AbstractSurefireMojo#systemPropertyVariables systemPropertyVariables for how the effective provider properties are calculated + + + systemPropertyVariables + java.util.Map -+ 2.5 + false + true -+ List of System properties to pass to a provider. The effective system properties given to a provider are contributed from several sources: -+* properties set via argLine with -D (only for forked executions) -+* systemProperties -+* getSystemPropertiesFile() (set via parameter systemPropertiesFile on some goals) -+* systemPropertyVariables -+* User properties from MavenSession#getUserProperties(), usually set via CLI options given with -D on the current Maven process (only used as source if promoteUserPropertiesToSystemProperties is true) Later sources may overwrite same named properties from earlier sources, that means for example that one cannot overwrite user properties with either systemProperties, getSystemPropertiesFile() or systemPropertyVariables. -+Certain properties may only be overwritten via argLine (applicable only for forked executions) because their values are cached and only evaluated at the start of the JRE. Those include: -+ -+* java.library.path -+* file.encoding -+* jdk.map.althashing.threshold -+* line.separator -+See also: systemProperties ++ + + + tempDir + java.lang.String -+ 2.20 + false + true -+ Relative path to temporary-surefire-boot directory containing internal Surefire temporary files. -+The temporary-surefire-boot directory is project.build.directory on most platforms or system default temporary-directory specified by the system property java.io.tmpdir on Windows (see SUREFIRE-1400 <https://issues.apache.org/jira/browse/SUREFIRE-1400>). -+It is deleted after the test set has completed. ++ + + + test + java.lang.String + false + true -+ Specify this parameter to run individual tests by file name, overriding the parameter includes and excludes. Each pattern you specify here will be used to create an include pattern formatted like **/${test}.java, so you can just type -Dtest=MyTest to run a single test called "foo/MyTest.java". The test patterns prefixed with a ! will be excluded. -+This parameter overrides the parameter includes, excludes, and the TestNG parameter suiteXmlFiles. ++ Specify this parameter to run individual tests by file name, overriding the parameter includes and excludes. Each pattern you specify here will be used to create an include pattern formatted like **/${test}.java, so you can just type -Dtest=MyTest to run a single test called "foo/MyTest.java". The test patterns prefixed with a ! will be excluded. ++This parameter overrides the parameter includes, excludes, and the TestNG parameter suiteXmlFiles. +Since 2.7.3, you can execute a limited number of methods in the test by adding #myMethod or #my*ethod. For example, -Dtest=MyTest#myMethod. This is supported for junit 4.x and TestNg. + -+Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): "-Dtest=???Test, !Unstable*, pkg/**/Ci*leTest.java, *Test#test*One+testTwo?????, #fast*+slowTest" or e.g. "-Dtest=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyTest.class#one.*|two.*], %regex[#fast.*|slow.*]" ++Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG): "-Dtest=???Test, !Unstable*, pkg/**/Ci*leTest.java, *Test#test*One+testTwo?????, #fast*+slowTest" or e.g. "-Dtest=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyTest.class#one.*|two.*], %regex[#fast.*|slow.*]" +The Parameterized JUnit runner describes test methods using an index in brackets, so the non-regex method pattern would become: #testMethod[*]. If using @Parameters(name="{index}: fib({0})={1}") and selecting the index e.g. 5 in pattern, the non-regex method pattern would become #testMethod[5:*]. + + @@ -4639,7 +4095,7 @@ index 000000000..3a76ee7b9 + java.io.File + false + true -+ The directory containing generated test classes of the project being tested. This will be included at the beginning of the test classpath. ++ + + + testFailureIgnore @@ -4651,69 +4107,51 @@ index 000000000..3a76ee7b9 + + testNGArtifactName + java.lang.String -+ 2.3.1 + false + true -+ Allows you to specify the name of the TestNG artifact. If not set, org.testng:testng will be used. ++ + + + testSourceDirectory + java.io.File -+ 2.2 + false + true -+ The test source directory containing test class sources. Important only for TestNG HTML reports. ++ + + + threadCount + int -+ 2.2 + false + true -+ (TestNG/JUnit 4.7 provider) The attribute thread-count allows you to specify how many threads should be allocated for this execution. Only makes sense to use in conjunction with the parallel parameter. ++ + + + threadCountClasses + int -+ 2.16 + false + true -+ (JUnit 4.7 provider) This attribute allows you to specify the concurrency in test classes, i.e.: -+* number of concurrent classes if threadCount is 0 or unspecified -+* limited classes concurrency if useUnlimitedThreads is set to true -+* if threadCount and certain thread-count parameters are > 0 for parallel, the concurrency is computed from ratio. For instance parallel=all and the ratio between threadCountSuites:threadCountClasses:threadCountMethods is 2:3:5, there is 30% of threadCount in concurrent classes. -+* as in the previous case but without this leaf thread-count. Example: parallel=suitesAndClasses, threadCount=16, threadCountSuites=5, threadCountClasses is unspecified leaf, the number of concurrent classes is varying from >= 11 to 14 or 15. The threadCountSuites become given number of threads. Only makes sense to use in conjunction with the parallel parameter. The default value 0 behaves same as unspecified one. ++ + + + threadCountMethods + int -+ 2.16 + false + true -+ (JUnit 4.7 provider) This attribute allows you to specify the concurrency in test methods, i.e.: -+* number of concurrent methods if threadCount is 0 or unspecified -+* limited concurrency of methods if useUnlimitedThreads is set to true -+* if threadCount and certain thread-count parameters are > 0 for parallel, the concurrency is computed from ratio. For instance parallel=all and the ratio between threadCountSuites:threadCountClasses:threadCountMethods is 2:3:5, there is 50% of threadCount which appears in concurrent methods. -+* as in the previous case but without this leaf thread-count. Example: parallel=all, threadCount=16, threadCountSuites=2, threadCountClasses=3, but threadCountMethods is unspecified leaf, the number of concurrent methods is varying from >= 11 to 14 or 15. The threadCountSuites and threadCountClasses become given number of threads. Only makes sense to use in conjunction with the parallel parameter. The default value 0 behaves same as unspecified one. ++ + + + threadCountSuites + int -+ 2.16 + false + true -+ (JUnit 4.7 provider) This attribute allows you to specify the concurrency in test suites, i.e.: -+* number of concurrent suites if threadCount is 0 or unspecified -+* limited suites concurrency if useUnlimitedThreads is set to true -+* if threadCount and certain thread-count parameters are > 0 for parallel, the concurrency is computed from ratio. For instance parallel=all and the ratio between threadCountSuites:threadCountClasses:threadCountMethods is 2:3:5, there is 20% of threadCount which appeared in concurrent suites. Only makes sense to use in conjunction with the parallel parameter. The default value 0 behaves same as unspecified one. ++ + + + trimStackTrace + boolean -+ 2.2 + false + true -+ Whether to trim the stack trace in the reports to just the lines within the test, or show the full trace. ++ + + + useFile @@ -4728,7 +4166,7 @@ index 000000000..3a76ee7b9 + 2.4.3 + false + true -+ By default, Surefire forks your tests using a manifest-only JAR; set this parameter to "false" to force it to launch your tests with a plain old Java classpath. (See the http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html <http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html> for a more detailed explanation of manifest-only JARs and their benefits.) ++ By default, Surefire forks your tests using a manifest-only JAR; set this parameter to "false" to force it to launch your tests with a plain old Java classpath. (See the http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html <http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html> for a more detailed explanation of manifest-only JARs and their benefits.) +Beware, setting this to "false" may cause your tests to fail on Windows if your classpath is too long. + + @@ -4737,7 +4175,7 @@ index 000000000..3a76ee7b9 + 3.0.0-M2 + false + true -+ When true, uses the modulepath when executing with JDK 9+ and module-info.java is present. When false, always uses the classpath. ++ When true, uses the modulepath when executing with JDK 9+ and module-info.java is present. When false, always uses the classpath. +Defaults to true. + + @@ -4751,18 +4189,16 @@ index 000000000..3a76ee7b9 + + useUnlimitedThreads + boolean -+ 2.5 + false + true -+ (JUnit 4.7 provider) Indicates that the thread pool will be unlimited. The parallel parameter and the actual number of classes/methods will decide. Setting this to "true" effectively disables perCoreThreadCount and threadCount. Defaults to "false". ++ + + + workingDirectory + java.io.File -+ 2.1.3 + false + true -+ Command line working directory. ++ + + + @@ -4775,7 +4211,7 @@ index 000000000..3a76ee7b9 + ${maven.test.dependency.excludes} + ${maven.surefire.debug} + ${dependenciesToScan} -+ ${disableXmlReport} ++ ${disableXmlReport} + ${enableAssertions} + ${enableOutErrElements} + ${surefire.enableProcessChecker} @@ -4876,19 +4312,7 @@ index 000000000..3a76ee7b9 + org.apache.maven.surefire + surefire-api + jar -+ 3.5.0 -+ -+ -+ org.apache.commons -+ commons-lang3 -+ jar -+ 3.16.0 -+ -+ -+ org.apache.maven.surefire -+ surefire-logger-api -+ jar -+ 3.5.0 ++ 3.5.2 + + + org.apache.maven.shared @@ -4897,28 +4321,58 @@ index 000000000..3a76ee7b9 + 3.3.4 + + ++ commons-io ++ commons-io ++ jar ++ 2.17.0 ++ ++ + org.slf4j + slf4j-api + jar + 1.7.36 + + -+ commons-io -+ commons-io ++ org.apache.maven.surefire ++ surefire-logger-api + jar -+ 2.16.1 ++ 3.5.2 ++ ++ ++ org.apache.commons ++ commons-lang3 ++ jar ++ 3.17.0 + + + org.apache.maven.surefire + surefire-extensions-api + jar -+ 3.5.0 ++ 3.5.2 + + + org.apache.maven.surefire + maven-surefire-common + jar -+ 3.5.0 ++ 3.5.2 ++ ++ ++ org.codehaus.plexus ++ plexus-java ++ jar ++ 1.3.0 ++ ++ ++ org.ow2.asm ++ asm ++ jar ++ 9.6 ++ ++ ++ com.thoughtworks.qdox ++ qdox ++ jar ++ 2.0.3 + + + org.apache.commons @@ -4933,18 +4387,6 @@ index 000000000..3a76ee7b9 + 1.16.1 + + -+ org.apache.maven.surefire -+ surefire-booter -+ jar -+ 3.5.0 -+ -+ -+ org.apache.maven.surefire -+ surefire-extensions-spi -+ jar -+ 3.5.0 -+ -+ + org.apache.maven.resolver + maven-resolver-util + jar @@ -4957,36 +4399,28 @@ index 000000000..3a76ee7b9 + 1.9.22 + + ++ org.apache.maven.surefire ++ surefire-booter ++ jar ++ 3.5.2 ++ ++ ++ org.apache.maven.surefire ++ surefire-extensions-spi ++ jar ++ 3.5.2 ++ ++ + org.apache.maven.shared + maven-common-artifact-filters + jar + 3.4.0 + -+ -+ org.codehaus.plexus -+ plexus-java -+ jar -+ 1.2.0 -+ -+ -+ org.ow2.asm -+ asm -+ jar -+ 9.6 -+ -+ -+ com.thoughtworks.qdox -+ qdox -+ jar -+ 2.0.3 -+ + + -diff --git a/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_plugin/HelpMojo.java b/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_plugin/HelpMojo.java -new file mode 100644 -index 000000000..fc1065a39 ---- /dev/null -+++ b/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_plugin/HelpMojo.java +diff -urEbwBN a/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_plugin/HelpMojo.java b/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_plugin/HelpMojo.java +--- a/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_plugin/HelpMojo.java 1970-01-01 01:00:00.000000000 +0100 ++++ b/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_plugin/HelpMojo.java 2024-11-04 10:41:36.879493528 +0100 @@ -0,0 +1,448 @@ +package org.apache.maven.plugins.maven_surefire_plugin; + @@ -5436,11 +4870,9 @@ index 000000000..fc1065a39 + return null; + } +} -diff --git a/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-report-plugin/plugin-help.xml b/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-report-plugin/plugin-help.xml -new file mode 100644 -index 000000000..e93a949b0 ---- /dev/null -+++ b/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-report-plugin/plugin-help.xml +diff -urEbwBN a/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-report-plugin/plugin-help.xml b/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-report-plugin/plugin-help.xml +--- a/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-report-plugin/plugin-help.xml 1970-01-01 01:00:00.000000000 +0100 ++++ b/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-report-plugin/plugin-help.xml 2024-11-04 10:45:39.894480900 +0100 @@ -0,0 +1,496 @@ + + @@ -5491,7 +4923,7 @@ index 000000000..e93a949b0 + 3.1.0 + false + true -+ Path for a custom bundle instead of using the default one. ++ Path for a custom bundle instead of using the default one. +Using this field, you could change the texts in the generated reports. + + @@ -5578,7 +5010,7 @@ index 000000000..e93a949b0 + java.io.File + false + true -+ Location where Test Source XRef is generated for this project. ++ Location where Test Source XRef is generated for this project. +Default: org.apache.maven.reporting.AbstractMavenReport.getReportOutputDirectory() + /xref-test + + @@ -5687,7 +5119,7 @@ index 000000000..e93a949b0 + 3.1.0 + false + true -+ Path for a custom bundle instead of using the default one. ++ Path for a custom bundle instead of using the default one. +Using this field, you could change the texts in the generated reports. + + @@ -5774,7 +5206,7 @@ index 000000000..e93a949b0 + java.io.File + false + true -+ Location where Test Source XRef is generated for this project. ++ Location where Test Source XRef is generated for this project. +Default: org.apache.maven.reporting.AbstractMavenReport.getReportOutputDirectory() + /xref-test + + @@ -5830,7 +5262,7 @@ index 000000000..e93a949b0 + 3.1.0 + false + true -+ Path for a custom bundle instead of using the default one. ++ Path for a custom bundle instead of using the default one. +Using this field, you could change the texts in the generated reports. + + @@ -5917,7 +5349,7 @@ index 000000000..e93a949b0 + java.io.File + false + true -+ Location where Test Source XRef is generated for this project. ++ Location where Test Source XRef is generated for this project. +Default: org.apache.maven.reporting.AbstractMavenReport.getReportOutputDirectory() + /xref-test + + @@ -5938,11 +5370,9 @@ index 000000000..e93a949b0 + + + -diff --git a/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml b/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml -new file mode 100644 -index 000000000..744c56d5b ---- /dev/null -+++ b/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml +diff -urEbwBN a/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml b/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml +--- a/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml 1970-01-01 01:00:00.000000000 +0100 ++++ b/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml 2024-11-04 10:46:55.558333020 +0100 @@ -0,0 +1,958 @@ + + @@ -5997,7 +5427,7 @@ index 000000000..744c56d5b + 3.1.0 + false + true -+ Path for a custom bundle instead of using the default one. ++ Path for a custom bundle instead of using the default one. +Using this field, you could change the texts in the generated reports. + + @@ -6140,7 +5570,7 @@ index 000000000..744c56d5b + java.io.File + false + true -+ Location where Test Source XRef is generated for this project. ++ Location where Test Source XRef is generated for this project. +Default: org.apache.maven.reporting.AbstractMavenReport.getReportOutputDirectory() + /xref-test + + @@ -6275,7 +5705,7 @@ index 000000000..744c56d5b + 3.1.0 + false + true -+ Path for a custom bundle instead of using the default one. ++ Path for a custom bundle instead of using the default one. +Using this field, you could change the texts in the generated reports. + + @@ -6418,7 +5848,7 @@ index 000000000..744c56d5b + java.io.File + false + true -+ Location where Test Source XRef is generated for this project. ++ Location where Test Source XRef is generated for this project. +Default: org.apache.maven.reporting.AbstractMavenReport.getReportOutputDirectory() + /xref-test + + @@ -6500,7 +5930,7 @@ index 000000000..744c56d5b + 3.1.0 + false + true -+ Path for a custom bundle instead of using the default one. ++ Path for a custom bundle instead of using the default one. +Using this field, you could change the texts in the generated reports. + + @@ -6643,7 +6073,7 @@ index 000000000..744c56d5b + java.io.File + false + true -+ Location where Test Source XRef is generated for this project. ++ Location where Test Source XRef is generated for this project. +Default: org.apache.maven.reporting.AbstractMavenReport.getReportOutputDirectory() + /xref-test + + @@ -6694,19 +6124,19 @@ index 000000000..744c56d5b + org.apache.maven.surefire + surefire-logger-api + jar -+ 3.5.0 ++ 3.5.2 + + + org.apache.maven.surefire + surefire-report-parser + jar -+ 3.5.0 ++ 3.5.2 + + + org.eclipse.sisu + org.eclipse.sisu.plexus + jar -+ 0.9.0.M2 ++ 0.9.0.M3 + + + org.slf4j @@ -6730,13 +6160,13 @@ index 000000000..744c56d5b + org.eclipse.sisu + org.eclipse.sisu.inject + jar -+ 0.9.0.M2 ++ 0.9.0.M3 + + + org.codehaus.plexus + plexus-utils + jar -+ 4.0.0 ++ 4.0.1 + + + javax.inject @@ -6745,6 +6175,12 @@ index 000000000..744c56d5b + 1 + + ++ org.codehaus.plexus ++ plexus-xml ++ jar ++ 3.0.1 ++ ++ + org.apache.maven.shared + maven-shared-utils + jar @@ -6754,25 +6190,25 @@ index 000000000..744c56d5b + commons-io + commons-io + jar -+ 2.16.1 ++ 2.17.0 + + + org.apache.maven.doxia + doxia-sink-api + jar -+ 2.0.0-M12 ++ 2.0.0 + + + org.apache.maven.doxia + doxia-core + jar -+ 2.0.0-M12 ++ 2.0.0 + + + org.apache.commons + commons-lang3 + jar -+ 3.16.0 ++ 3.17.0 + + + org.apache.commons @@ -6784,55 +6220,55 @@ index 000000000..744c56d5b + org.apache.maven.reporting + maven-reporting-impl + jar -+ 4.0.0-M15 ++ 4.0.0 + + + org.apache.maven.doxia + doxia-site-renderer + jar -+ 2.0.0-M19 -+ -+ -+ org.apache.velocity -+ velocity-engine-core -+ jar -+ 2.3 ++ 2.0.0 + + + org.apache.maven.doxia + doxia-skin-model + jar -+ 2.0.0-M19 ++ 2.0.0 ++ ++ ++ org.apache.velocity ++ velocity-engine-core ++ jar ++ 2.4 + + + org.codehaus.plexus + plexus-velocity + jar -+ 2.1.0 ++ 2.2.0 + + + org.apache.maven.doxia + doxia-module-xhtml5 + jar -+ 2.0.0-M12 ++ 2.0.0 + + + org.apache.maven.doxia + doxia-module-xdoc + jar -+ 2.0.0-M12 ++ 2.0.0 + + + org.apache.maven.doxia + doxia-integration-tools + jar -+ 2.0.0-M19 ++ 2.0.0 + + + org.apache.maven.reporting + maven-reporting-api + jar -+ 4.0.0-M12 ++ 4.0.0 + + + org.apache.maven @@ -6844,7 +6280,7 @@ index 000000000..744c56d5b + org.codehaus.plexus + plexus-archiver + jar -+ 4.8.0 ++ 4.10.0 + + + org.codehaus.plexus @@ -6874,19 +6310,13 @@ index 000000000..744c56d5b + org.apache.maven.doxia + doxia-site-model + jar -+ 2.0.0-M19 ++ 2.0.0 + + + org.apache.maven.doxia + doxia-module-apt + jar -+ 2.0.0-M12 -+ -+ -+ org.codehaus.plexus -+ plexus-xml -+ jar -+ 4.0.0 ++ 2.0.0 + + + org.codehaus.plexus @@ -6902,11 +6332,9 @@ index 000000000..744c56d5b + + + -diff --git a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_report_plugin/HelpMojo.java b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_report_plugin/HelpMojo.java -new file mode 100644 -index 000000000..b0fcb4b3a ---- /dev/null -+++ b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_report_plugin/HelpMojo.java +diff -urEbwBN a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_report_plugin/HelpMojo.java b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_report_plugin/HelpMojo.java +--- a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_report_plugin/HelpMojo.java 1970-01-01 01:00:00.000000000 +0100 ++++ b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugin/maven_surefire_report_plugin/HelpMojo.java 2024-11-04 10:39:38.158690041 +0100 @@ -0,0 +1,448 @@ +package org.apache.maven.plugins.maven_surefire_report_plugin; + @@ -7356,6 +6784,3 @@ index 000000000..b0fcb4b3a + return null; + } +} --- -2.46.1 - diff --git a/maven-surefire-build.tar.xz b/maven-surefire-build.tar.xz index 319d646..b5faeea 100644 --- a/maven-surefire-build.tar.xz +++ b/maven-surefire-build.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9450eb612ce8cfd4add91381e887c68179219afdd5db2b562129c1a1dad34537 -size 4536 +oid sha256:57b84e1770489a7dfc6ca82e97abeded4b44522bfdc9143044549f248553bad4 +size 4624 diff --git a/maven-surefire-plugins.changes b/maven-surefire-plugins.changes index 9bd45fb..d39e676 100644 --- a/maven-surefire-plugins.changes +++ b/maven-surefire-plugins.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Mon Nov 4 09:51:10 UTC 2024 - Fridrich Strba + +- Upgrade to 3.5.2 + * Bug + + SUREFIRE-2276: JUnit5's TestTemplate failures treated as + flakes with retries + + SUREFIRE-2277: RunResult#getFlakes() is lost during + serialisation/deserialisation to/from failsafe-summary.xml + + SUREFIRE-2283: FAQ site contains broken link to + failsafe-plugin + * Improvement + + SUREFIRE-2278: Don't say Please + * Task + + SUREFIRE-2282: surefire-report-plugin: Update Introduction + documentation page + * Dependency upgrade + + SUREFIRE-2281: Upgrade to Doxia 2.0.0 GA Stack +- Modified patches: + * 0001-Port-to-TestNG-7.4.0.patch + * 0002-Unshade-surefire.patch + + rediff + * maven-surefire-bootstrap-resources.patch + + regenerate from non-bootstrap build + ------------------------------------------------------------------- Thu Oct 3 14:33:33 UTC 2024 - Fridrich Strba diff --git a/maven-surefire-plugins.spec b/maven-surefire-plugins.spec index 5c2f9e1..194ceaf 100644 --- a/maven-surefire-plugins.spec +++ b/maven-surefire-plugins.spec @@ -18,7 +18,7 @@ %global base_name maven-surefire Name: %{base_name}-plugins -Version: 3.5.1 +Version: 3.5.2 Release: 0 Summary: Test framework project License: Apache-2.0 AND CPL-1.0 @@ -136,7 +136,6 @@ sed -i /-Xdoclint:all/d pom.xml # We don't need site-source %pom_remove_plugin :maven-assembly-plugin maven-surefire-plugin -%pom_remove_dep -r ::::site-source # Disable all modules besides the 3 plugins for module in \ diff --git a/maven-surefire-provider-junit5.changes b/maven-surefire-provider-junit5.changes index cbbc56e..343899e 100644 --- a/maven-surefire-provider-junit5.changes +++ b/maven-surefire-provider-junit5.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Mon Nov 4 09:51:10 UTC 2024 - Fridrich Strba + +- Upgrade to 3.5.2 + * Bug + + SUREFIRE-2276: JUnit5's TestTemplate failures treated as + flakes with retries + + SUREFIRE-2277: RunResult#getFlakes() is lost during + serialisation/deserialisation to/from failsafe-summary.xml + + SUREFIRE-2283: FAQ site contains broken link to + failsafe-plugin + * Improvement + + SUREFIRE-2278: Don't say Please + * Task + + SUREFIRE-2282: surefire-report-plugin: Update Introduction + documentation page + * Dependency upgrade + + SUREFIRE-2281: Upgrade to Doxia 2.0.0 GA Stack +- Modified patches: + * 0001-Port-to-TestNG-7.4.0.patch + * 0002-Unshade-surefire.patch + + rediff + * maven-surefire-bootstrap-resources.patch + + regenerate from non-bootstrap build + ------------------------------------------------------------------- Thu Oct 3 14:33:33 UTC 2024 - Fridrich Strba diff --git a/maven-surefire-provider-junit5.spec b/maven-surefire-provider-junit5.spec index 711850f..76b2196 100644 --- a/maven-surefire-provider-junit5.spec +++ b/maven-surefire-provider-junit5.spec @@ -18,7 +18,7 @@ %global base_name maven-surefire Name: %{base_name}-provider-junit5 -Version: 3.5.1 +Version: 3.5.2 Release: 0 Summary: JUnit 5 provider for Maven Surefire License: Apache-2.0 AND CPL-1.0 @@ -78,7 +78,6 @@ sed -i /-Xdoclint:all/d pom.xml # We don't need site-source %pom_remove_plugin :maven-assembly-plugin maven-surefire-plugin -%pom_remove_dep -r ::::site-source %build pushd surefire-providers/surefire-junit-platform diff --git a/maven-surefire.changes b/maven-surefire.changes index 1565ae9..3312204 100644 --- a/maven-surefire.changes +++ b/maven-surefire.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Mon Nov 4 09:51:10 UTC 2024 - Fridrich Strba + +- Upgrade to 3.5.2 + * Bug + + SUREFIRE-2276: JUnit5's TestTemplate failures treated as + flakes with retries + + SUREFIRE-2277: RunResult#getFlakes() is lost during + serialisation/deserialisation to/from failsafe-summary.xml + + SUREFIRE-2283: FAQ site contains broken link to + failsafe-plugin + * Improvement + + SUREFIRE-2278: Don't say Please + * Task + + SUREFIRE-2282: surefire-report-plugin: Update Introduction + documentation page + * Dependency upgrade + + SUREFIRE-2281: Upgrade to Doxia 2.0.0 GA Stack +- Modified patches: + * 0001-Port-to-TestNG-7.4.0.patch + * 0002-Unshade-surefire.patch + + rediff + * maven-surefire-bootstrap-resources.patch + + regenerate from non-bootstrap build + ------------------------------------------------------------------- Thu Oct 3 14:33:33 UTC 2024 - Fridrich Strba diff --git a/maven-surefire.spec b/maven-surefire.spec index 8ca7a37..45973c7 100644 --- a/maven-surefire.spec +++ b/maven-surefire.spec @@ -17,7 +17,7 @@ Name: maven-surefire -Version: 3.5.1 +Version: 3.5.2 Release: 0 Summary: Test framework project License: Apache-2.0 AND CPL-1.0 @@ -161,11 +161,9 @@ sed -i /-Xdoclint:all/d pom.xml # Help plugin is needed only to evaluate effective Maven settings. # For building RPM package default settings will suffice. -%pom_remove_plugin :maven-help-plugin surefire-its # We don't need site-source %pom_remove_plugin :maven-assembly-plugin maven-surefire-plugin -%pom_remove_dep -r ::::site-source %build %{mvn_package} ":*tests*" __noinstall