InstrumentOptions

data class InstrumentOptions(val pkg: List<String> = emptyList(), val clazz: List<String> = emptyList(), val functional: Boolean? = null, val unit: Boolean? = null, val filterSize: InstrumentationSizeOption? = null, val performance: Boolean? = null, val debug: Boolean? = null, val log: Boolean? = null, val emma: Boolean? = null, val coverageFile: String? = null, val overrides: Map<String, String> = mapOf())

Parameters

pkg

The fully-qualified Java package name for one of the packages in the test application. Any test case class that uses this package name is executed. Notice that this is not an Android package name; a test package has a single Android package name but may have several Java packages within it.

clazz

The fully-qualified Java class name for one of the test case classes. Only this test case class is executed.

or

#method name A fully-qualified test case class name, and one of its methods. Only this method is executed. Note the hash mark (#) between the class name and the method name.

functional

Runs all test classes that extend InstrumentationTestCase.

unit

Runs all test classes that do not extend either InstrumentationTestCase or PerformanceTestCase.

filterSize

Runs a test method annotated by size. The annotations are @SmallTest, @MediumTest, and @LargeTest.

performance

Runs all test classes that implement PerformanceTestCase.

debug

Runs tests in debug mode.

log

Loads and logs all specified tests, but does not run them. The test information appears in STDOUT. Use this to verify combinations of other filters and test specifications.

emma

Runs an EMMA code coverage analysis and writes the output to /data//coverage.ec on the device. To override the file location, use the coverageFile key that is described in the following entry.

coverageFile

Overrides the default location of the EMMA coverage file on the device. Specify this value as a path and filename in UNIX format. The default filename is described in the entry for the emma key.

Constructors

Link copied to clipboard
constructor(pkg: List<String> = emptyList(), clazz: List<String> = emptyList(), functional: Boolean? = null, unit: Boolean? = null, filterSize: InstrumentationSizeOption? = null, performance: Boolean? = null, debug: Boolean? = null, log: Boolean? = null, emma: Boolean? = null, coverageFile: String? = null, overrides: Map<String, String> = mapOf())

Functions

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
val coverageFile: String? = null
Link copied to clipboard
val debug: Boolean? = null
Link copied to clipboard
val emma: Boolean? = null
Link copied to clipboard
Link copied to clipboard
val functional: Boolean? = null
Link copied to clipboard
val log: Boolean? = null
Link copied to clipboard
Link copied to clipboard
val performance: Boolean? = null
Link copied to clipboard
Link copied to clipboard
val unit: Boolean? = null