Use the direct test descriptor parent for test start events in Gradle

The reportingParent previously used for that purpose was null in test
start events, resulting in ungrouped tests.
This commit is contained in:
Sergey Igushkin
2019-07-11 20:04:32 +03:00
parent f6679f27f4
commit dfcd28da2c

View File

@@ -332,7 +332,7 @@ internal open class TCServiceMessagesClient(
checkState(NodeState.created)
reportingParent?.checkState(NodeState.started)
results.started(descriptor!!, TestStartEvent(ts, reportingParent?.descriptor?.id))
results.started(descriptor!!, TestStartEvent(ts, descriptor!!.parent?.id))
state = NodeState.started
}