This is an automated email from the ASF dual-hosted git repository. pkarwasz pushed a commit to branch fix/main/parallel-tests in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 758a97b0205a5f1286553cbcc6f3ec4035e2f8db Author: Piotr P. Karwasz <[email protected]> AuthorDate: Wed Jun 19 13:06:34 2024 +0200 Switch to parallel testing by default Since `main` tests were more fragile, we kept the tests in `main` to run sequentially, while those in `2.x` run in parallel. This PR switches `main` testing back to parallel mode (1 test per JVM). --- log4j-parent/pom.xml | 31 +------------------------------ pom.xml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 30 deletions(-) diff --git a/log4j-parent/pom.xml b/log4j-parent/pom.xml index 2c3961b316..9bc102fb72 100644 --- a/log4j-parent/pom.xml +++ b/log4j-parent/pom.xml @@ -995,40 +995,12 @@ </executions> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <forkCount>1</forkCount> - <reuseForks>false</reuseForks> - <runOrder>alphabetical</runOrder> - <systemPropertyVariables> - <java.awt.headless>true</java.awt.headless> - </systemPropertyVariables> - </configuration> - </plugin> - </plugins> - </build> <profiles> - <profile> - <id>parallel-tests</id> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <forkCount>1C</forkCount> - </configuration> - </plugin> - </plugins> - </build> - </profile> - + <!-- `plugin-processing` profile containing configuration specific to `@Plugin`-annotated members --> <profile> <id>plugin-processing</id> @@ -1112,7 +1084,6 @@ ]]></source> </configuration> </execution> - </executions> </plugin> diff --git a/pom.xml b/pom.xml index 98d77310d4..01b864727d 100644 --- a/pom.xml +++ b/pom.xml @@ -924,6 +924,22 @@ </build> <profiles> + + <profile> + <id>sequential-tests</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <forkCount>1</forkCount> + </configuration> + </plugin> + </plugins> + </build> + </profile> + <profile> <id>rewrite</id>
