Skip to content

Commit

Permalink
Issue #101: Turn off logs during testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mk23 committed Apr 7, 2016
1 parent 497a331 commit 306943b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,29 +259,31 @@
</configuration>
</execution>
<execution>
<id>anonymous</id>
<id>anonymous-test</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<argLine>
-Dlogback.configurationFile=src/test/resources/logback.xml
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.port=${jmxproxy.test.port}
</argLine>
</configuration>
</execution>
<execution>
<id>authenticated</id>
<id>authenticated-test</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<argLine>
-Dlogback.configurationFile=src/test/resources/logback.xml
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.access.file=scripts/server/access.txt
-Dcom.sun.management.jmxremote.password.file=scripts/server/passwd.txt
Expand Down Expand Up @@ -403,7 +405,7 @@
<version>3.6</version>
<configuration>
<linkXRef>false</linkXRef>
<skipEmptyReport>false</skipEmptyReport>
<skipEmptyReport>false</skipEmptyReport>
</configuration>
<reportSets>
<reportSet>
Expand Down
9 changes: 9 additions & 0 deletions src/test/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<configuration>
<root level="OFF">
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%-5level %-36logger{36} - %msg%n</pattern>
</encoder>
</appender>
</root>
</configuration>

0 comments on commit 306943b

Please sign in to comment.