File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ allprojects {
53
53
}
54
54
}
55
55
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
56
60
// set heap size for the test JVM(s)
57
61
minHeapSize = " 128m"
58
62
maxHeapSize = " 3072m"
@@ -68,6 +72,9 @@ allprojects {
68
72
override fun beforeTest (testDescriptor : TestDescriptor ) {}
69
73
override fun afterTest (testDescriptor : TestDescriptor , result : TestResult ) {
70
74
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
+ }
71
78
}
72
79
73
80
override fun afterSuite (testDescriptor : TestDescriptor , result : TestResult ) {
You can’t perform that action at this time.
0 commit comments