Last active
March 26, 2019 02:23
-
-
Save ttymsd/13c6600dbc1105230d7f575be6e625b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
testOptions { | |
// ローカルテストでActivity/Fragmentのテスト時にリソース読み込めなくてクラッシュしないように | |
unitTests.includeAndroidResources = true | |
} | |
} | |
dependencies { | |
testImplementation "org.robolectric:robolectric:4.3-alpha-1" | |
testImplementation "junit:junit:4.12" | |
testImplementation "androidx.test.ext:junit-ktx:1.1.1-alpha02" | |
// ActivityScenario | |
testImplementation "androidx.test:core:1.1.1-alpha02" | |
// モックライブラリやUI操作用のライブラリなど | |
testImplementation "androidx.test.ext:truth:1.2.0-alpha02" | |
testImplementation "androidx.test.espresso:espresso-core:3.2.0-alpha02" | |
testImplementation "androidx.test.espresso:espresso-contrib:3.2.0-alpha02" | |
testImplementation "io.mockk:mockk:1.9.2" | |
} | |
dependencies { | |
configurations.all { | |
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9' | |
exclude group: 'com.google.guava', module: 'listenablefuture' | |
} | |
// テストランナー | |
androidTestImplementation "androidx.test:runner:1.1.2-alpha02" | |
androidTestImplementation "junit:junit:4.12" | |
androidTestImplementation "androidx.test.ext:junit-ktx:1.1.1-alpha02" | |
// ActivityScenario | |
androidTestImplementation "androidx.test:core:1.1.1-alpha02" | |
// モックライブラリやUI操作用のライブラリなど | |
androidTestImplementation "androidx.test.ext:truth:1.2.0-alpha02" | |
androidTestImplementation "androidx.test.espresso:espresso-core:3.2.0-alpha02" | |
androidTestImplementation "androidx.test.espresso:espresso-contrib:3.2.0-alpha02" | |
androidTestImplementation "io.mockk:mockk:1.9.2" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment