Skip to content

Commit 4604ecc

Browse files
committed
Got rid of the excessive logging that occurs in the unittest phase
1 parent a11344e commit 4604ecc

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ test {
3939
}
4040

4141
systemProperties TESTROOT : new File(buildDir,'tmp/test/unittests').absolutePath
42-
systemProperties TEST_SCRIPT_DIR : new File(buildDir,'src/resources/scripts').absolutePath
42+
systemProperties TEST_SCRIPT_DIR : new File(projectDir,'src/test/resources/scripts').absolutePath
43+
systemProperties 'logback.configurationFile' : new File(projectDir,'src/test/resources/logback-test.xml').absolutePath
4344

4445
if(gradle.startParameter.isOffline()) {
4546
systemProperties 'TESTS_ARE_OFFLINE' : '1'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.lookout.jruby.internal
2+
3+
/**
4+
* Created by schalkc on 19/08/2014.
5+
*/
6+
class JRubyExecProxy {
7+
}

src/test/resources/logback-test.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<configuration>
2+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
3+
<encoder>
4+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
5+
</encoder>
6+
</appender>
7+
8+
<root level="info">
9+
<appender-ref ref="STDOUT" />
10+
</root>
11+
</configuration>

0 commit comments

Comments
 (0)