In tests using now Logback as logging backend
This commit is contained in:
parent
1a967efcbd
commit
59b2999ec2
|
@ -14,6 +14,7 @@ val klfVersion: String by project
|
||||||
|
|
||||||
val assertKVersion: String by project
|
val assertKVersion: String by project
|
||||||
val xunitVersion: String by project
|
val xunitVersion: String by project
|
||||||
|
val logbackVersion: String by project
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("org.mustangproject:library:$mustangVersion")
|
implementation("org.mustangproject:library:$mustangVersion")
|
||||||
|
@ -23,8 +24,10 @@ dependencies {
|
||||||
|
|
||||||
testImplementation(kotlin("test"))
|
testImplementation(kotlin("test"))
|
||||||
|
|
||||||
implementation("com.willowtreeapps.assertk:assertk:$assertKVersion")
|
testImplementation("com.willowtreeapps.assertk:assertk:$assertKVersion")
|
||||||
testImplementation("org.xmlunit:xmlunit-core:$xunitVersion")
|
testImplementation("org.xmlunit:xmlunit-core:$xunitVersion")
|
||||||
|
|
||||||
|
testImplementation("ch.qos.logback:logback-classic:$logbackVersion")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
<configuration>
|
||||||
|
|
||||||
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
|
<!-- encoders are assigned the type
|
||||||
|
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
|
||||||
|
<encoder>
|
||||||
|
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||||
|
</encoder>
|
||||||
|
|
||||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||||
|
<level>DEBUG</level>
|
||||||
|
</filter>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<!-- Insert the current time formatted as "yyyyMMdd'T'HHmmss" under
|
||||||
|
the key "bySecond" into the logger context. This value will be
|
||||||
|
available to all subsequent configuration elements. -->
|
||||||
|
<timestamp key="bySecond" datePattern="yyyyMMdd'T'HHmmss"/>
|
||||||
|
|
||||||
|
<root level="ALL">
|
||||||
|
<appender-ref ref="STDOUT"/>
|
||||||
|
</root>
|
||||||
|
|
||||||
|
</configuration>
|
|
@ -8,6 +8,8 @@ kotlinVersion=1.9.25
|
||||||
mustangVersion=2.14.2
|
mustangVersion=2.14.2
|
||||||
|
|
||||||
klfVersion=1.6.2
|
klfVersion=1.6.2
|
||||||
|
# only used for tests
|
||||||
|
logbackVersion=1.5.12
|
||||||
|
|
||||||
assertKVersion=0.28.1
|
assertKVersion=0.28.1
|
||||||
xunitVersion=2.10.0
|
xunitVersion=2.10.0
|
Loading…
Reference in New Issue