Join us for ⁠#Android11: The Beta Launch Show on June 3!
Added in API level 1

Test

interface Test
junit.framework.Test

A Test can be run and collect its results.

Summary

Public methods

abstract Int

Counts the number of test cases that will be run by this test.

abstract Unit
run(result: TestResult!)

Runs a test and collects its result in a TestResult instance.

Public methods

countTestCases

Added in API level 1
abstract fun countTestCases(): Int

Counts the number of test cases that will be run by this test.

run

Added in API level 1
abstract fun run(result: TestResult!): Unit

Runs a test and collects its result in a TestResult instance.