Skip to content

Instantly share code, notes, and snippets.

@ashley-figueira
Last active November 30, 2020 16:18
Show Gist options
  • Save ashley-figueira/f03677ecc9d4e90b7f739eb18d8e73a1 to your computer and use it in GitHub Desktop.
Save ashley-figueira/f03677ecc9d4e90b7f739eb18d8e73a1 to your computer and use it in GitHub Desktop.
Dependencies for Intrumentation Tests
dependencies {
...
// Instrumentation tests
androidTestImplementation "junit:junit:${Versions.junit}"
androidTestImplementation "com.google.truth:truth:${Versions.truth}"
androidTestImplementation "org.mockito:mockito-core:${Versions.mockito}"
androidTestImplementation "org.mockito:mockito-android:${Versions.mockito}"
androidTestImplementation "androidx.test:core:${Versions.androidx_test_core}"
androidTestImplementation "androidx.test:runner:${Versions.androidx_test_runner}"
androidTestImplementation "androidx.test:rules:${Versions.androidx_test_rules}"
debugImplementation "androidx.fragment:fragment-testing:${Versions.androidx_fragment_test}"
androidTestImplementation "androidx.navigation:navigation-testing:${Versions.androidx_navigation}"
androidTestImplementation "androidx.arch.core:core-testing:${Versions.androidx_arch_core_test}"
androidTestImplementation "androidx.test.espresso:espresso-core:${Versions.androidx_espresso}"
androidTestImplementation "androidx.test.espresso:espresso-contrib:${Versions.androidx_espresso}"
androidTestImplementation "androidx.test.espresso:espresso-intents:${Versions.androidx_espresso}"
androidTestImplementation "com.google.dagger:hilt-android-testing:${Versions.dagger}"
kaptAndroidTest "com.google.dagger:hilt-android-compiler:${Versions.dagger}"
androidTestImplementation "com.squareup.okhttp3:mockwebserver:${Versions.okhttp}"
androidTestImplementation "com.jakewharton.espresso:okhttp3-idling-resource:1.0.0"
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment