Skip to content

Commit 14afa2e

Browse files
committed
fix(build): discover tests on the junit platform
- the shared preset's useJUnitPlatform did not apply here, so no test was ever discovered and an empty run reported success - add junit-jupiter, which the sibling libraries already use
1 parent 2a7b0b0 commit 14afa2e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎build.gradle‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ repositories {
3838
mavenCentral()
3939
}
4040

41+
test {
42+
useJUnitPlatform()
43+
}
44+
4145
java {
4246
sourceCompatibility = JavaVersion.VERSION_1_8
4347
targetCompatibility = JavaVersion.VERSION_1_8
@@ -53,4 +57,6 @@ dependencies {
5357
implementation "org.kohsuke:github-api:1.324"
5458
implementation "com.github.codemonstur:embedded-redis:1.4.3"
5559
testImplementation "junit:junit:4.12"
60+
// the shared preset runs useJUnitPlatform(), so only jupiter tests are discovered.
61+
testImplementation "org.junit.jupiter:junit-jupiter:5.10.1"
5662
}

0 commit comments

Comments
 (0)