Skip to content

Commit

Permalink
Merge pull request wildfly#6114 from jamezp/WFCORE-6936
Browse files Browse the repository at this point in the history
[WFCORE-6936] Allow the maven.test.redirectTestOutputToFile system pr…
  • Loading branch information
jamezp authored Aug 8, 2024
2 parents cdc5e22 + be37723 commit 4ad5ba0
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 11 deletions.
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@
${surefire.jacoco.args} -Djava.io.tmpdir=${project.build.directory}</surefire.jvm.args>
<surefire.system.args>${surefire.jpda.args} ${surefire.jvm.args}</surefire.system.args>
<test.level>INFO</test.level>
<!-- The maven.test.redirectTestOutputToFile is used by the surefire-maven-plugin and failsafe-maven-plugin to
redirect stdout and stderr to a file. We use testLogToFile as shorthand for this setting and default to
true. You can override this from the command line by passing false to either of these properties.
-->
<testLogToFile>true</testLogToFile>
<maven.test.redirectTestOutputToFile>${testLogToFile}</maven.test.redirectTestOutputToFile>

<!-- This overrides default surefire plugin version specified in parent pom - reason is to enable TCP/IP communication,
see https://maven.apache.org/surefire/maven-surefire-plugin/examples/process-communication.html -->
Expand Down Expand Up @@ -339,7 +345,6 @@
</dependencies>
<configuration>
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<enableAssertions>true</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
Expand Down
1 change: 0 additions & 1 deletion testsuite/client-old-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
<configuration>
<failIfNoTests>false</failIfNoTests>
<!-- parallel>none</parallel -->
<redirectTestOutputToFile>${testLogToFile}</redirectTestOutputToFile>

<!-- System properties to forked surefire JVM which runs clients. -->
<argLine>${jvm.args.ip.client} ${jvm.args.timeouts} ${surefire.system.args} -Djava.util.logging.manager=org.jboss.logmanager.LogManager</argLine>
Expand Down
1 change: 0 additions & 1 deletion testsuite/domain/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@
<configuration>
<failIfNoTests>false</failIfNoTests>
<!-- parallel>none</parallel -->
<redirectTestOutputToFile>${testLogToFile}</redirectTestOutputToFile>

<!-- System properties to forked surefire JVM which runs clients. -->
<argLine>${jvm.args.ip.client} ${jvm.args.timeouts} ${surefire.system.args} -Djava.util.logging.manager=org.jboss.logmanager.LogManager</argLine>
Expand Down
1 change: 0 additions & 1 deletion testsuite/elytron/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@
<configuration>
<failIfNoTests>false</failIfNoTests>
<!-- parallel>none</parallel -->
<redirectTestOutputToFile>${testLogToFile}</redirectTestOutputToFile>

<!-- System properties to forked surefire JVM which runs clients. -->
<argLine>${jvm.args.ip.client} ${jvm.args.timeouts} ${surefire.system.args}</argLine>
Expand Down
1 change: 0 additions & 1 deletion testsuite/embedded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
<configuration>
<failIfNoTests>false</failIfNoTests>
<!-- parallel>none</parallel -->
<redirectTestOutputToFile>${testLogToFile}</redirectTestOutputToFile>

<!-- Always use a new fork so each test gets it's own embedded environment -->
<forkCount>1</forkCount>
Expand Down
3 changes: 1 addition & 2 deletions testsuite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<failIfNoTests>false</failIfNoTests>
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
<redirectTestOutputToFile>${testLogToFile}</redirectTestOutputToFile>
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
<argLine>-Djava.util.logging.manager=org.jboss.logmanager.LogManager</argLine>
<systemPropertyVariables>
<jboss.dist>${jboss.dist}</jboss.dist>
Expand Down
1 change: 0 additions & 1 deletion testsuite/rbac/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<parallel>none</parallel>
<redirectTestOutputToFile>${testLogToFile}</redirectTestOutputToFile>
<systemPropertyVariables>
<wildfly.debug>${ts.debug}</wildfly.debug>
<wildfly.debug.port>8787</wildfly.debug.port>
Expand Down
1 change: 0 additions & 1 deletion testsuite/scripts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
<configuration>
<skip>${skipTests}</skip>
<failIfNoTests>false</failIfNoTests>
<redirectTestOutputToFile>${testLogToFile}</redirectTestOutputToFile>
<reuseForks>true</reuseForks>

<systemPropertyVariables>
Expand Down
1 change: 0 additions & 1 deletion testsuite/standalone/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@
</excludes>
<failIfNoTests>false</failIfNoTests>
<!-- parallel>none</parallel -->
<redirectTestOutputToFile>${testLogToFile}</redirectTestOutputToFile>

<!-- System properties to forked surefire JVM which runs clients. -->
<argLine>${jvm.args.ip.client} ${jvm.args.timeouts} ${surefire.system.args} -Djava.util.logging.manager=org.jboss.logmanager.LogManager</argLine>
Expand Down
1 change: 0 additions & 1 deletion testsuite/unstable-api-annotation/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
</excludes>
<failIfNoTests>false</failIfNoTests>
<!-- parallel>none</parallel -->
<redirectTestOutputToFile>${testLogToFile}</redirectTestOutputToFile>

<!-- System properties to forked surefire JVM which runs clients. -->
<argLine>${jvm.args.ip.client} ${jvm.args.timeouts} ${surefire.system.args} -Djava.util.logging.manager=org.jboss.logmanager.LogManager</argLine>
Expand Down

0 comments on commit 4ad5ba0

Please sign in to comment.