File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ import groovy.time.TimeCategory
2+ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
3+ import org.gradle.api.tasks.testing.logging.TestLogEvent
14
25plugins {
36 id " org.jetbrains.intellij" version " 1.10.1"
@@ -121,6 +124,19 @@ tasks.withType(Test) {
121124 systemProperty ' idea.log.leaked.projects.in.tests' , ' false'
122125 systemProperty ' idea.maven.test.mirror' , ' https://repo1.maven.org/maven2'
123126 systemProperty ' com.redhat.devtools.intellij.telemetry.mode' , ' disabled'
127+
128+ testLogging {
129+ events TestLogEvent . FAILED , TestLogEvent . SKIPPED , TestLogEvent . PASSED
130+ showExceptions true
131+ exceptionFormat TestExceptionFormat . FULL
132+ showCauses true
133+ showStackTraces true
134+ showStandardStreams = false
135+ }
136+ afterTest { descriptor , result ->
137+ def totalTime = TimeCategory . minus(new Date (result. endTime), new Date (result. startTime))
138+ println " $descriptor . name took $totalTime "
139+ }
124140}
125141
126142tasks. withType(Copy ) {
You can’t perform that action at this time.
0 commit comments