JUnitEngineSpec

Added in 9.0.0-alpha07

@Incubating
interface JUnitEngineSpec


Summary

Public functions

Unit
addInputProperty(propertyName: String, propertyValue: Provider<String>)

Adds a new key value pair property to the list of inputs of this test engine, the value will only be resolved at execution time.

Unit
@Incubating
addInputProperty(propertyName: String, propertyValue: String)

Adds a new key value pair property to the list of inputs for this test engine.

Public properties

DependencyCollector

Returns a DependencyCollector that collects the set of runtime-only dependencies to find and load configured junit engines.

MutableSet<String>

Returns the final list of included engines for this tes suite.

List<AgpTestSuiteInputParameters>

Returns the final list of inputs required by the junit engine running the test suite.

Public functions

addInputProperty

Added in 9.0.0-alpha07
fun addInputProperty(propertyName: String, propertyValue: Provider<String>): Unit

Adds a new key value pair property to the list of inputs of this test engine, the value will only be resolved at execution time.

addInputProperty

Added in 9.0.0-alpha07
@Incubating
fun addInputProperty(propertyName: String, propertyValue: String): Unit

Adds a new key value pair property to the list of inputs for this test engine.

Public properties

enginesDependencies

Added in 9.0.0-alpha07
val enginesDependenciesDependencyCollector

Returns a DependencyCollector that collects the set of runtime-only dependencies to find and load configured junit engines.

includeEngines

Added in 9.0.0-alpha07
val includeEnginesMutableSet<String>

Returns the final list of included engines for this tes suite.

you must use the AndroidComponentsExtension.beforeVariants API and access the parameters located in TestSuiteBuilder.junitEngineSpec to add new engines.

inputs

Added in 9.0.0-alpha07
val inputsList<AgpTestSuiteInputParameters>

Returns the final list of inputs required by the junit engine running the test suite.

Since these inputs can change the build flow, it is too late to change them here, you must use the AndroidComponentsExtension.beforeVariants API and access the parameters located in TestSuiteBuilder.junitEngineSpec