Skip to content

Commit 6e81fa3

Browse files
committed
add testlogger
1 parent 1ac59f0 commit 6e81fa3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ plugins {
1111
id(libs.plugins.jacoco.get().pluginId)
1212
id("stove-publishing") apply false
1313
id("reporting")
14+
alias(testLibs.plugins.testLogger)
1415
java
1516
}
1617

@@ -30,6 +31,7 @@ subprojectsOf("lib", "spring", "examples", "ktor") {
3031
plugin(rootProject.libs.plugins.dokka.get().pluginId)
3132
plugin(rootProject.libs.plugins.jacoco.get().pluginId)
3233
plugin(rootProject.libs.plugins.jacocoReportAggregation.get().pluginId)
34+
plugin(rootProject.testLibs.plugins.testLogger.get().pluginId)
3335
}
3436

3537
val testImplementation by configurations
@@ -51,6 +53,10 @@ subprojectsOf("lib", "spring", "examples", "ktor") {
5153
test {
5254
dependsOn(lintKotlin)
5355
useJUnitPlatform()
56+
testlogger {
57+
setTheme("mocha")
58+
this.showStandardStreams = true
59+
}
5460
reports {
5561
junitXml.required.set(true)
5662
html.required.set(true)

gradle/libs-test.versions.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ kotest = "5.6.2"
77
kotest-spring = "1.1.3"
88
mockito = "5.0.0"
99
wiremock = "2.35.0"
10-
testcontainers = "1.17.6"
10+
testcontainers = "1.18.3"
1111
ktor = "2.3.2"
1212

1313
[libraries]
@@ -30,3 +30,7 @@ testcontainers-couchbase = { module = "org.testcontainers:couchbase", version.re
3030
testcontainers-postgres = { module = "org.testcontainers:postgresql", version.ref = "testcontainers" }
3131
testcontainers-elasticsearch = { module = "org.testcontainers:elasticsearch", version.ref = "testcontainers" }
3232
testcontainers-mongodb = { module = "org.testcontainers:mongodb", version.ref = "testcontainers" }
33+
34+
35+
[plugins]
36+
testLogger = { id = "com.adarshr.test-logger", version = "3.2.0" }

0 commit comments

Comments
 (0)