# TestResult

interface TestResult

Describes a test result.

## Types

ResultType
Link copied to clipboard
enum ResultType
The final status of a test.

## Functions

getAssumptionFailure
Link copied to clipboard
@Incubating
@Nullable
abstract fun getAssumptionFailure(): @Nullable TestFailure
If the test failed with assumption violation, this will contain the failure.
getEndTime
Link copied to clipboard
abstract fun getEndTime(): Long
Returns the time when this test completed execution.
getException
Link copied to clipboard
@Nullable
abstract fun getException(): @Nullable Throwable
If the test failed with an exception, this will be the exception.
getExceptions
Link copied to clipboard
abstract fun getExceptions(): List<Throwable>
If the test failed with any exceptions, this will contain the exceptions.
getFailedTestCount
Link copied to clipboard
abstract fun getFailedTestCount(): Long
Returns the number of failed atomic tests executed for this test.
getFailures
Link copied to clipboard
@Incubating
abstract fun getFailures(): List<TestFailure>
If the test failed with any exceptions, this will contain the exceptions and a description of the failure types.
getResultType
Link copied to clipboard
abstract fun getResultType(): TestResult.ResultType
Returns the type of result.
getSkippedTestCount
Link copied to clipboard
abstract fun getSkippedTestCount(): Long
Returns the number of skipped atomic tests executed for this test.
getStartTime
Link copied to clipboard
abstract fun getStartTime(): Long
Returns the time when this test started execution.
getSuccessfulTestCount
Link copied to clipboard
abstract fun getSuccessfulTestCount(): Long
Returns the number of successful atomic tests executed for this test.
getTestCount
Link copied to clipboard
abstract fun getTestCount(): Long
Returns the total number of atomic tests executed for this test.