androidInstrumentedTest
abstract val NamedDomainObjectContainer<KotlinSourceSet>.androidInstrumentedTest: NamedDomainObjectProvider<KotlinSourceSet>
Static accessor for the instrumented test Kotlin Source Set of android target. Declare android target to access this source set. If android target wasn't declared, accessing this source set will cause a runtime error during configuration time.
Sample:
kotlin {
androidTarget() // Target is declared, androidInstrumentedTest source set is created
sourceSets {
androidInstrumentedTest.dependencies {
// Add androidUnitTest dependencies here
}
}
}
Content copied to clipboard
Since
2.0.20