Skip to content

Commit 848167a

Browse files
committed
[utbot-java]
Providing additional auxiliary log information when running in docker
1 parent 521269c commit 848167a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ allprojects {
5353
}
5454
}
5555
withType<Test> {
56+
// uncomment if you want to see loggers output in console
57+
// this is useful if you debug in docker
58+
// testLogging.showStandardStreams = true
59+
// testLogging.showStackTraces = true
5660
// set heap size for the test JVM(s)
5761
minHeapSize = "128m"
5862
maxHeapSize = "3072m"
@@ -68,6 +72,9 @@ allprojects {
6872
override fun beforeTest(testDescriptor: TestDescriptor) {}
6973
override fun afterTest(testDescriptor: TestDescriptor, result: TestResult) {
7074
println("[$testDescriptor.classDisplayName] [$testDescriptor.displayName]: $result.resultType, length - ${(result.endTime - result.startTime) / 1000.0} sec")
75+
if (result.resultType == TestResult.ResultType.FAILURE) {
76+
println("Exception: " + result.exception?.stackTraceToString())
77+
}
7178
}
7279

7380
override fun afterSuite(testDescriptor: TestDescriptor, result: TestResult) {

0 commit comments

Comments
 (0)