TestResult

interface TestResult(source)

Describes a test result.

Types

Link copied to clipboard
The final status of a test.

Functions

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