Skip to content

Instantly share code, notes, and snippets.

@AlexZhukovich
Created February 1, 2019 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexZhukovich/01fc3889feb0db6185ecf6f5807e5c90 to your computer and use it in GitHub Desktop.
Save AlexZhukovich/01fc3889feb0db6185ecf6f5807e5c90 to your computer and use it in GitHub Desktop.
Sharing test cases between local and instrumentation tests - dependencies
dependencies {
...
// Robolectric
testImplementation "org.robolectric:robolectric:$robolectric_version" // 4.1
// Android test runner and rules
androidTestImplementation "androidx.test:runner:$test_runner_version" // 1.1.0
androidTestImplementation "androidx.test:core:$test_core_version" // 1.1.0
androidTestImplementation "androidx.test.ext:junit:$test_junit_version" // 1.1.0
androidTestImplementation "androidx.test:rules:$test_rules_version" // 1.1.0
testImplementation "androidx.test:runner:$test_runner_version" // 1.1.0
testImplementation "androidx.test:core:$test_core_version" // 1.1.0
testImplementation "androidx.test.ext:junit:$test_junit_version" // 1.1.0
testImplementation "androidx.test:rules:$test_rules_version" // 1.1.0
// Espresso
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_core_version" //3.1.0
androidTestImplementation "androidx.test.espresso:espresso-intents:$espresso_intents_version" //3.1.0
testImplementation "androidx.test.espresso:espresso-core:$espresso_core_version" //3.1.0
testImplementation "androidx.test.espresso:espresso-intents:$espresso_intents_version" //3.1.0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment