Slide 15
Slide 15 text
©2018 Wantedly, Inc.
apply plugin: “de.mannodermaus.android-junit5"
android {
testOptions {
junitPlatform {
filters {
engines {
include ‘spek2’,‘junit-vintage’
}
}
}
}
}
def spek_version='2.0.0-alpha.1'
def junit5_runner='0.2.2'
dependencies {
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
testImplementation 'junit:junit:4.12'
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testImplementation "org.spekframework.spek2:spek-dsl-jvm:$spek_version"
testRuntimeOnly "org.spekframework.spek2:spek-runner-junit5:$spek_version"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.2.0"
androidTestRuntimeOnly "de.mannodermaus.junit5:android-instrumentation-test-runner:$junit5_runner"
}