File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,4 @@ gradle-local.properties
1717snyk
1818.vscode
1919docker
20+ dep.txt
Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ subprojects {
2020 }
2121
2222 dependencies {
23+ // Without this, once using JUnit 5.12 or higher, Gradle will not find any tests and report an error of:
24+ // org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
25+ testRuntimeOnly " org.junit.platform:junit-platform-launcher:1.13.4"
26+
27+ testImplementation ' org.junit.jupiter:junit-jupiter:5.13.4'
28+ testImplementation " org.springframework:spring-test:${ springVersion} "
29+
2330 // Forcing Spring to use logback instead of commons-logging
2431 testImplementation " ch.qos.logback:logback-classic:1.5.18"
2532 testImplementation ' org.slf4j:jcl-over-slf4j:2.0.17'
Original file line number Diff line number Diff line change @@ -26,9 +26,6 @@ dependencies {
2626 exclude module : " jackson-databind"
2727 }
2828
29- // With 5.12.x, tests are somehow not found by Gradle.
30- testImplementation ' org.junit.jupiter:junit-jupiter:5.11.2'
31- testImplementation " org.springframework:spring-test:${ springVersion} "
3229 testImplementation ' commons-io:commons-io:2.19.0'
3330 testImplementation ' xmlunit:xmlunit:1.6'
3431
Original file line number Diff line number Diff line change @@ -11,11 +11,7 @@ dependencies {
1111 implementation ' org.jdom:jdom2:2.0.6.1'
1212 implementation " com.fasterxml.jackson.core:jackson-databind:${ jacksonVersion} "
1313
14- // With 5.12.x, tests are somehow not found by Gradle.
15- testImplementation ' org.junit.jupiter:junit-jupiter:5.11.2'
16- testImplementation " org.springframework:spring-test:${ springVersion} "
1714 testImplementation ' org.mockito:mockito-core:4.11.0'
18-
1915 // Used for testing loading modules from the classpath
2016 testImplementation files(" lib/modules.jar" )
2117}
You can’t perform that action at this time.
0 commit comments