androidUnitTest

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

Since

2.0.20