Added in API level 1
Deprecated in API level 24

InstrumentationTestSuite

open class InstrumentationTestSuite : TestSuite
kotlin.Any
   ↳ junit.framework.TestSuite
   ↳ android.test.InstrumentationTestSuite

A junit.framework.TestSuite that injects android.app.Instrumentation into InstrumentationTestCase before running them.

Summary

Public constructors

Public methods
open Unit
addTestSuite(testClass: Class<Any!>!)

open Unit
runTest(test: Test!, result: TestResult!)

Inherited functions

Public constructors

InstrumentationTestSuite

Added in API level 1
InstrumentationTestSuite(instr: Instrumentation!)
Parameters
instr Instrumentation!: The instrumentation that will be injected into each test before running it.

InstrumentationTestSuite

Added in API level 1
InstrumentationTestSuite(
    name: String!,
    instr: Instrumentation!)

InstrumentationTestSuite

Added in API level 1
InstrumentationTestSuite(
    theClass: Class<Any!>!,
    instr: Instrumentation!)
Parameters
theClass Class<Any!>!: Inspected for methods starting with 'test'
instr Instrumentation!: The instrumentation to inject into each test before running.

Public methods

addTestSuite

Added in API level 1
open fun addTestSuite(testClass: Class<Any!>!): Unit

Deprecated: Deprecated in Java.

runTest

Added in API level 1
open fun runTest(
    test: Test!,
    result: TestResult!
): Unit

Deprecated: Deprecated in Java.