DefaultInputsForAgpTestSuites

Added in 8.10.0-alpha05

enum DefaultInputsForAgpTestSuites : Enum


List of default properties that can be used to initialize the AgpTestSuite.testEngineInputs for a particular test suite.

Can be used as :

android {
testOptions {
suites {
create("myHostTestSuite") {
useJunitEngine() {
DefaultInputsForAgpTestSuites.HOST_TEST.initialize(this)
}
}
}
}
}

Summary

Public functions

Unit
DefaultInputsForAgpTestSuites
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<DefaultInputsForAgpTestSuites>

Returns an array containing the constants of this enum type, in the order they're declared.

Public properties

List<AgpTestSuiteInputParameters>

List of properties that will be made available to the junit test engine by the test task.

Public functions

initialize

Added in 8.10.0-alpha05
@Incubating
fun initialize(testSuite: JUnitEngineSpec): Unit

valueOf

Added in 8.10.0-alpha05
fun valueOf(value: String): DefaultInputsForAgpTestSuites

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

Added in 8.10.0-alpha05
fun values(): Array<DefaultInputsForAgpTestSuites>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

Public properties

supportedProperties

Added in 8.10.0-alpha05
val supportedPropertiesList<AgpTestSuiteInputParameters>

List of properties that will be made available to the junit test engine by the test task.

At this time, the lists definition are mostly for testing purposes.

TODO: change comment once property handover is implemented. These properties are guaranteed to be provided by the time the test start and a retrieval mechanism will be added in a subsequent CL.