Skip to content

Commit 33bcf5b

Browse files
authored
Run all tests again (#1688)
After 2f6e519 in #1633, all tests has not been run for months. Renovate PR and other PRs are passed, because no test ran. This change fixes the current situation. Referance - https://docs.gradle.org/8.14.3/userguide/upgrading_version_8.html#test_framework_implementation_dependencies (The PR should have seen this written in warn message) - https://stackoverflow.com/questions/77579350/how-do-i-get-rid-of-automatic-loading-of-test-framework-implementation-dependen
1 parent 0ec1e27 commit 33bcf5b

File tree

7 files changed

+7
-1
lines changed

7 files changed

+7
-1
lines changed

buildSrc/src/main/kotlin/sdk.java-library.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ tasks.withType<Javadoc> {
6565
}
6666

6767
tasks.withType(Test::class.java) {
68+
useJUnitPlatform()
6869
testLogging {
6970
// Make sure output from standard out or error is shown in Gradle output.
7071
showStandardStreams = true

gradle/libraries.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jsonassert = { module = "org.skyscreamer:jsonassert", version = "1.5.3" }
4747
mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockito" }
4848
mockito-junit-jupiter = { module = "org.mockito:mockito-junit-jupiter", version.ref = "mockito" }
4949
wiremock = { group = "org.wiremock", name = "wiremock-standalone", version = "3.13.1" }
50-
test-arranger = { module = "com.ocadotechnology.gembus:test-arranger", version = "1.6.4.1" }
50+
test-arranger = { module = "com.ocadotechnology.gembus:test-arranger", version = "1.5.7.1" }
5151
socks-proxy-server = { module = "com.github.bbottema:java-socks-proxy-server", version = "4.1.2" }
5252
littleproxy = { module = "io.github.littleproxy:littleproxy", version = "2.4.4" }
5353

line-bot-integration-test/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,5 @@ dependencies {
7979
integrationTestImplementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml")
8080
integrationTestImplementation(project(":line-bot-jackson"))
8181
integrationTestRuntimeOnly(libs.jjwt.impl)
82+
integrationTestRuntimeOnly("org.junit.platform:junit-platform-launcher")
8283
}

spring-boot/line-bot-spring-boot-client/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ dependencies {
4141

4242
testImplementation("org.springframework.boot:spring-boot-starter-test") // MockHttpServletRequest
4343
testImplementation("org.springframework.boot:spring-boot-starter-logging")
44+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
4445

4546
// http://docs.spring.io/spring-boot/docs/current/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor
4647
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")

spring-boot/line-bot-spring-boot-handler/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ dependencies {
3434

3535
testImplementation(libs.wiremock)
3636
testImplementation("org.springframework.boot:spring-boot-starter-test") // MockHttpServletRequest
37+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
3738

3839
// http://docs.spring.io/spring-boot/docs/current/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor
3940
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")

spring-boot/line-bot-spring-boot-web/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ dependencies {
3333

3434
testImplementation("org.springframework.boot:spring-boot-starter-test") // MockHttpServletRequest
3535
testImplementation("org.springframework.boot:spring-boot-starter-logging")
36+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
3637
}

spring-boot/line-bot-spring-boot-webmvc/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ dependencies {
3131
testImplementation(libs.wiremock)
3232
testImplementation("org.springframework.boot:spring-boot-starter-test") // MockHttpServletRequest
3333
testImplementation("org.springframework.boot:spring-boot-starter-logging")
34+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
3435
}

0 commit comments

Comments
 (0)