Skip to content

Commit 32fe89d

Browse files
committed
Add missing JUnit launcher
For some reason, this was missing only from the hangman and rest-api exercises. It is required to run the tests from Gradle. See https://docs.gradle.org/current/userguide/upgrading_version_8.html#test_framework_implementation_dependencies
1 parent 9a9ff66 commit 32fe89d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

exercises/practice/hangman/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ dependencies {
1212
testImplementation platform("org.junit:junit-bom:5.10.0")
1313
testImplementation "org.junit.jupiter:junit-jupiter"
1414
testImplementation "org.assertj:assertj-core:3.25.1"
15+
16+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
1517
}
1618

1719
test {

exercises/practice/rest-api/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ dependencies {
1212
testImplementation platform("org.junit:junit-bom:5.10.0")
1313
testImplementation "org.junit.jupiter:junit-jupiter"
1414
testImplementation "org.assertj:assertj-core:3.25.1"
15+
16+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1517
}
1618

1719
test {

0 commit comments

Comments
 (0)