api / org.gradle.tooling.events.test / TestFinishEvent

TestFinishEvent

interface TestFinishEvent : TestProgressEvent, FinishEvent

An event that informs about a test having finished its execution. You can query the result of the test using #getResult().

Since
2.4

Functions

getResult

abstract fun getResult(): TestOperationResult

Returns the result of the finished test operation. Currently, the result will be one of the following sub-types:

  • TestSuccessResult
  • TestSkippedResult
  • TestFailureResult

Inherited Functions

getDescriptor

abstract fun getDescriptor(): TestOperationDescriptor

Returns the description of the test for which progress is reported. For JVM-based tests, the descriptor is of sub-type JvmTestOperationDescriptor.