Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Commit

Permalink
Improve logging for test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Apr 4, 2013
1 parent 58edb4b commit 6e9b11c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/core/src/main/resources/pc-log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ log4j.appender.stdout.threshold=ERROR

# Direct log messages to a log file
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=${gatein.test.output.path}/test.log
log4j.appender.file.File=${log4j.path}/test.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
31 changes: 31 additions & 0 deletions test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,35 @@
<!-- THIS MUST BE EMPTY (cf test/servers/jboss7/dependencies) -->
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>default-test</id>
<configuration>
<systemProperties>
<property>
<name>log4j.configuration</name>
<value>pc-log4j.properties</value>
</property>
<property>
<name>log4j.path</name>
<value>${project.build.directory}</value>
</property>
<property>
<name>log4j.level</name>
<value>debug</value>
</property>
</systemProperties>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>

</project>
6 changes: 0 additions & 6 deletions test/servers/tomcat7/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@
<excludes>
<exclude>**/EventPayloadBetweenApplicationsWarTestCase.java</exclude>
</excludes>
<systemProperties>
<property>
<name>log4j.configuration</name>
<value>pc-log4j.properties</value>
</property>
</systemProperties>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit 6e9b11c

Please sign in to comment.