Test Dependencies
Kotlin and Android Development featuring Jetpack — by Michael Fazio (124 / 125)
Published in
2 min readSep 23, 2021
👈 KAPT Dependencies | TOC | You May Be Interested In… 👉
These are the libraries used for automated testing in your app. The dependencies may be used for normal unit tests and/or Android tests. You can tell which type of test by the Gradle configuration keyword included in each dependency.
AndroidX Core Testing Kotlin Extensions
Adds Kotlin extension functions to various testing libraries.
testImplementation "androidx.test:core-ktx:$test_core_version"
androidTestImplementation "androidx.test:core-ktx:$test_core_version"
- Book version: 1.3.0
- Apps: Penny Drop
AndroidX Test — Runner
Adds the AndroidJUnit4 test runner class.
testImplementation "androidx.test:runner:$test_core_version"
- Book version: 1.3.0
- Apps: Penny Drop
Arch Core — Testing
Adds JUnit test rules that can be used with LiveData.
testImplementation "androidx.arch.core:core-testing:$arch_core_version"
- Book version: 2.1.0
- Apps: Penny Drop