androidUnitTest
abstract val NamedDomainObjectContainer<KotlinSourceSet>.androidUnitTest: NamedDomainObjectProvider<KotlinSourceSet>
Static accessor for the unit 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, androidUnitTest source set is created
sourceSets {
androidUnitTest.dependencies {
// Add androidUnitTest dependencies here
}
}
}
Content copied to clipboard
Since
2.0.20