TestFailureEvent


class TestFailureEvent : TestRunEventWithTestCase

Known direct subclasses
TestAssumptionFailureEvent

Denotes that the test ended with a TEST_ASSUMPTION_FAILURE.


Denotes that the test ended with a TEST_FAILURE. It has the FailureInfo object to denote what was the cause of the failure/error.

Summary

Public constructors

TestFailureEvent(testCase: TestCaseInfo, failure: FailureInfo)

Constructor to create TestFailureEvent.

Public functions

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

Public properties

FailureInfo

Inherited properties

From androidx.test.services.events.run.TestRunEventWithTestCase
TestCaseInfo

The TestCaseInfo this event is associated with.

Public constructors

TestFailureEvent

TestFailureEvent(testCase: TestCaseInfo, failure: FailureInfo)

Constructor to create TestFailureEvent.

Parameters
testCase: TestCaseInfo

the test case that this event is for.

failure: FailureInfo

the failure associated with the test case.

Public functions

writeToParcel

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

Public properties

failure

val failureFailureInfo