Test Dependencies

Kotlin and Android Development featuring Jetpack — by Michael Fazio (124 / 125)

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 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

Espresso Core Library

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.