Skip to content

Commit 6f78ebe

Browse files
author
Kay Hudson
committed
Add JUnit 5 with backward compatibility for 4
1 parent 27b89d0 commit 6f78ebe

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,13 @@ repositories {
1212
}
1313

1414
dependencies {
15+
// Backward compatibility with JUnit 4
16+
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.3.1'
1517
testCompile group: 'junit', name: 'junit', version: '4.12'
18+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
19+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
1620
}
21+
22+
test {
23+
useJUnitPlatform()
24+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Tue May 05 17:38:12 PDT 2020
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip

0 commit comments

Comments
 (0)