Merge pull request #3636 from Isira-Seneviratne/Add_JUnit_Vintage_Engine

[Android] Add JUnit Vintage Engine dependency.
This commit is contained in:
Vitalii Koshura 2020-04-24 15:23:24 +02:00 committed by GitHub
commit 938cb63438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -85,6 +85,11 @@ android {
exclude 'LICENSE-EDL-1.0.txt' exclude 'LICENSE-EDL-1.0.txt'
} }
testOptions {
unitTests.all {
useJUnitPlatform()
}
}
tasks.withType(Test) { tasks.withType(Test) {
testLogging { testLogging {
events "passed", "skipped", "failed" events "passed", "skipped", "failed"
@ -112,6 +117,7 @@ dependencies {
testImplementation "org.powermock:powermock-module-junit4:$powermock_version" testImplementation "org.powermock:powermock-module-junit4:$powermock_version"
testImplementation "org.powermock:powermock-api-mockito2:$powermock_version" testImplementation "org.powermock:powermock-api-mockito2:$powermock_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5_version"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:$junit5_version"
} }
repositories { repositories {
mavenCentral() mavenCentral()