Skip to content

Commit b058ef6

Browse files
committed
Enable detailed test logging in CI for better failure diagnosis
1 parent b74d8f7 commit b058ef6

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ jobs:
269269
--build-cache \
270270
--configuration-cache \
271271
--continue \
272-
--quiet \
272+
--info \
273273
-Dorg.gradle.workers.max=3 \
274274
-Dorg.gradle.jvmargs="-Xmx3g -XX:MaxMetaspaceSize=768m -XX:+UseG1GC"
275275
else
@@ -280,7 +280,7 @@ jobs:
280280
--build-cache \
281281
--configuration-cache \
282282
--continue \
283-
--quiet \
283+
--info \
284284
-Dorg.gradle.workers.max=3 \
285285
-Dorg.gradle.jvmargs="-Xmx3g -XX:MaxMetaspaceSize=768m -XX:+UseG1GC"
286286
fi

build-logic/src/main/kotlin/buildlogic.java-conventions.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,14 @@ afterEvaluate {
7777

7878
dependsOn(configurations.testRuntimeClasspath)
7979

80-
// Configure test output to suppress warnings
80+
// Configure test output for detailed logging
8181
testLogging {
82-
showStandardStreams = false
82+
showStandardStreams = true
8383
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
84-
events("passed", "skipped", "failed")
84+
events("passed", "skipped", "failed", "started")
85+
showExceptions = true
86+
showCauses = true
87+
showStackTraces = true
8588
}
8689

8790
val commonProjectDeps = listOf("testtoolkit", "shared")

0 commit comments

Comments
 (0)