This is an automated email from the ASF dual-hosted git repository. mattsicker pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit ec7960f9414041ea0f9edd34fced71dfc1b41413 Author: Matt Sicker <[email protected]> AuthorDate: Tue Feb 1 01:22:36 2022 -0600 Disable api test parallelism by default This has proven to be too unreliable with some tests. This is now available in the "parallel-tests" profile. Signed-off-by: Matt Sicker <[email protected]> --- log4j-api-test/pom.xml | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/log4j-api-test/pom.xml b/log4j-api-test/pom.xml index 7b3d2f1..9031a0b 100644 --- a/log4j-api-test/pom.xml +++ b/log4j-api-test/pom.xml @@ -21,7 +21,6 @@ <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j</artifactId> <version>3.0.0-SNAPSHOT</version> - <relativePath>../</relativePath> </parent> <artifactId>log4j-api-test</artifactId> <packaging>jar</packaging> @@ -155,15 +154,6 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <properties> - <configurationParameters> - <!-- LOG4J2-2921: use parallel test execution by default --> - junit.jupiter.execution.parallel.enabled = true - junit.jupiter.execution.parallel.mode.default = fork - </configurationParameters> - </properties> - <forkCount>1C</forkCount> - <reuseForks>true</reuseForks> <redirectTestOutputToFile>true</redirectTestOutputToFile> <excludedGroups>performance,smoke</excludedGroups> </configuration> @@ -297,5 +287,29 @@ </plugin> </plugins> </reporting> + <profiles> + <profile> + <id>parallel-tests</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <properties> + <configurationParameters> + <!-- LOG4J2-2921: use parallel test execution by default --> + junit.jupiter.execution.parallel.enabled = true + junit.jupiter.execution.parallel.mode.default = concurrent + </configurationParameters> + </properties> + <forkCount>1C</forkCount> + <reuseForks>true</reuseForks> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>
