Fix class name for test suite descriptor.

Issue #KT-36725 Fixed
Issue #KT-36716 Fixed
Issue #KT-36726 Fixed
This commit is contained in:
Konstantin Tskhovrebov
2020-02-19 18:02:32 +03:00
parent 1dbb3d7c0f
commit 018cfc7df6
2 changed files with 2 additions and 1 deletions
@@ -17,7 +17,7 @@ class KotlinMppTestLogger {
xml.event(type: testEventType) {
test(id: testDescriptor.id, parentId: testDescriptor.parent?.id ?: '') {
if (testDescriptor) {
descriptor(name: testDescriptor.displayName ?: '', className: testDescriptor.classDisplayName ?: '')
descriptor(name: testDescriptor.displayName ?: '', className: testDescriptor.className ?: '')
}
if (testEvent) {
def message = escapeCdata(testEvent.message)
@@ -432,6 +432,7 @@ internal open class TCServiceMessagesClient(
descriptor = object : DefaultTestSuiteDescriptor(id, fullName) {
override fun getDisplayName(): String = fullNameWithoutRoot
override fun getClassName(): String? = fullNameWithoutRoot
override fun getOwnerBuildOperationId(): Any? = rootOperationId
override fun getParent(): TestDescriptorInternal = reportingParent.descriptor
override fun toString(): String = displayName