AgpTestSuiteInputParameters

Added in 8.10.0-alpha05

enum AgpTestSuiteInputParameters : Enum


List of possible input parameters a Junit engine can consume to run successfully.

Each JUnit engine has particular inputs requirements and these must be passed across processes as the JUnit engine runs in a separate VM. Therefore, we cannot just use the Gradle's Provider APIs, plus those JUnit engines can run im multiple build systems.

So to express an input requirement in the Android ecosystem, a JUnit engine configuration can use a combination of the ones defined below. In the case of Gradle build system, the Test task will automatically become dependent on the tasks producing the artifacts and the artifacts location will be passed ot the JUnit engine.

To express the engine's requirements, the user must add the required inputs using the JUnitEngineSpec.inputs collection of AgpTestSuiteInputParameters

TODO: possibly explore how junit engine could also express their dependencies to avoid users having the manually add those.

TODO: Describe how the JUnit engine can retrieve the values at execution time once experimentation concluded.

Summary

Enum Values

MERGED_MANIFEST

Path to the merged manifest file.

TESTED_APKS

TODO: provide an access through the BuiltArtifactsLoader (moved out of gradle-api) ?

TESTING_APK

Path to the testing APK file.

TEST_CLASSES

java.io.File.pathSeparator separated list of folders containing test classes for this suite.

TEST_CLASSPATH

java.io.File.pathSeparator separated list of jar files or folders for the runtime classpath of the test classes

Public functions

AgpTestSuiteInputParameters
valueOf(value: String)

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

Array<AgpTestSuiteInputParameters>

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

Public properties

String

Enum Values

MERGED_MANIFEST

val AgpTestSuiteInputParameters.MERGED_MANIFESTAgpTestSuiteInputParameters

Path to the merged manifest file.

TESTED_APKS

val AgpTestSuiteInputParameters.TESTED_APKSAgpTestSuiteInputParameters

TODO: provide an access through the BuiltArtifactsLoader (moved out of gradle-api) ?

java.io.File.pathSeparator separated list of APK files to be tested.

TESTING_APK

val AgpTestSuiteInputParameters.TESTING_APKAgpTestSuiteInputParameters

Path to the testing APK file.

TEST_CLASSES

val AgpTestSuiteInputParameters.TEST_CLASSESAgpTestSuiteInputParameters

java.io.File.pathSeparator separated list of folders containing test classes for this suite.

TEST_CLASSPATH

val AgpTestSuiteInputParameters.TEST_CLASSPATHAgpTestSuiteInputParameters

java.io.File.pathSeparator separated list of jar files or folders for the runtime classpath of the test classes

Public functions

valueOf

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

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<AgpTestSuiteInputParameters>

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

propertyName

Added in 8.10.0-alpha05
val propertyNameString