mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
[java-tests] IDEA-169282 IJ-CR-152163 KMT-978 Fix renaming methods
(cherry picked from commit 0494abd9a4274fd2f99060b0abac2c3d811e464c) Merge-request: IJ-MR-165224 Merged-by: Mikhail Pyltsin <Mikhail.Pyltsin@jetbrains.com> GitOrigin-RevId: 529d8d46671227fc00385d133ae01cec723de55f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
17e7b70936
commit
cec0830d97
@@ -1,8 +1,11 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
|
||||
import groovy.xml.MarkupBuilder
|
||||
import org.gradle.api.tasks.testing.TestDescriptor
|
||||
import org.gradle.api.tasks.testing.TestListener
|
||||
import org.gradle.api.tasks.testing.TestOutputEvent
|
||||
import org.gradle.api.tasks.testing.TestOutputListener
|
||||
import org.gradle.api.tasks.testing.TestResult
|
||||
import org.gradle.api.internal.tasks.testing.TestDescriptorInternal
|
||||
import org.gradle.api.tasks.testing.*
|
||||
|
||||
class KotlinMppTestLogger {
|
||||
static def configureTestEventLogging(def task) {
|
||||
@@ -57,7 +60,7 @@ class KotlinMppTestLogger {
|
||||
if (testResult) {
|
||||
def errorMsg = escapeCdata(testResult.exception?.message ?: '')
|
||||
def stackTrace = escapeCdata(getStackTrace(testResult.exception))
|
||||
result(resultType: testResult.resultType ?: '', startTime: testResult.getStartTimeMillis, endTime: testResult.getEndTimeMillis) {
|
||||
result(resultType: testResult.resultType ?: '', startTime: testResult.startTime, endTime: testResult.endTime) {
|
||||
def exception = testResult.exception
|
||||
if (exception?.message?.trim()) xml.mkp.yieldUnescaped("<errorMsg>$errorMsg</errorMsg>")
|
||||
if (exception) xml.mkp.yieldUnescaped("<stackTrace>$stackTrace</stackTrace>")
|
||||
|
||||
Reference in New Issue
Block a user