Skip to content

Commit

Permalink
Update all test projects with latest JUnit 5 support (#161)
Browse files Browse the repository at this point in the history
Since JUnit 5.5, a different setup is required to make the modules work.
  • Loading branch information
MariusVolkhart authored Jun 15, 2020
1 parent 7a4b6e9 commit 344330b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion test-project-groovy/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
jUnitVersion = 5.3.1
jUnitVersion = 5.6.2
jUnitPlatformVersion = 1.6.2
2 changes: 2 additions & 0 deletions test-project-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ subprojects {
val testRuntimeOnly by configurations

val jUnitVersion: String by project
val jUnitPlatformVersion: String by project
//endregion

//region KOTLIN
Expand Down Expand Up @@ -51,6 +52,7 @@ subprojects {
testImplementation("org.junit.jupiter:junit-jupiter-api:$jUnitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$jUnitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jUnitVersion")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:$jUnitPlatformVersion")
}

// build.dependsOn(javadoc) // TODO: No public or protected classes found to document
Expand Down
3 changes: 2 additions & 1 deletion test-project-kotlin/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
jUnitVersion = 5.3.1
jUnitVersion = 5.6.2
jUnitPlatformVersion = 1.6.2
1 change: 1 addition & 0 deletions test-project-mixed/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ subprojects {
testImplementation "org.junit.jupiter:junit-jupiter-api:$jUnitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$jUnitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$jUnitVersion"
testRuntimeOnly "org.junit.platform:junit-platform-launcher:$jUnitPlatformVersion"
}

build.dependsOn javadoc
Expand Down
3 changes: 2 additions & 1 deletion test-project-mixed/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
jUnitVersion = 5.3.1
jUnitVersion = 5.6.2
jUnitPlatformVersion = 1.6.2
4 changes: 2 additions & 2 deletions test-project/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
jUnitVersion = 5.5.2
jUnitPlatformVersion = 1.5.2
jUnitVersion = 5.6.2
jUnitPlatformVersion = 1.6.2

0 comments on commit 344330b

Please sign in to comment.