TestCaseFinishedEvent


class TestCaseFinishedEvent : TestPlatformEvent


Marks the end of an individual test case and the overall status of that test.

There should always be a TestCaseFinishedEvent emitted for all test cases in a test run, though there are a couple of exceptions.

  • TestStatus.Status.IGNORED: The test was never started and will not be run.
  • TestStatus.Status.CANCELLED: The test was supposed to run, but this client encountered a state that required it to exit before the test could run.
See also
TestCaseStartedEvent

to signal that a test case has started.

TestCaseErrorEvent

for reporting errors that occurred while this test case was running.

TestStatus.Status

for more information on our test statuses.

Summary

Public constructors

TestCaseFinishedEvent(
    testCase: TestCaseInfo,
    testStatus: TestStatus,
    timeStamp: TimeStamp
)

Constructor to create TestCaseFinishedEvent.

Public functions

Unit
writeToParcel(parcel: Parcel!, i: Int)

Public constructors

TestCaseFinishedEvent

TestCaseFinishedEvent(
    testCase: TestCaseInfo,
    testStatus: TestStatus,
    timeStamp: TimeStamp
)

Constructor to create TestCaseFinishedEvent.

Parameters
testCase: TestCaseInfo

the test case that finished.

testStatus: TestStatus

the final status of this test case.

timeStamp: TimeStamp

the time this test was finished.

Public functions

writeToParcel

fun writeToParcel(parcel: Parcel!, i: Int): Unit

Public properties

testCase

val testCaseTestCaseInfo

testStatus

val testStatusTestStatus

timeStamp

val timeStampTimeStamp