Skip to content

Commit 1d6dba1

Browse files
runningcodeclaude
andcommitted
build: Add an integrationTests task that runs every module's suites
The Spring Boot 2, 3 and 4 integration suites live in separate modules, so they are separate tasks. integrationTests runs all of them, the jakarta agent suite included, in one invocation. Each suite starts its own servers on free ports, so Gradle runs them in parallel. The suites also stay part of check. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 03e9b7c commit 1d6dba1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎build.gradle.kts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,18 @@ tasks.register("buildForCodeQL") {
235235
}
236236
}
237237

238+
// Each module's suites start their own servers on free ports, so Gradle can run them all at once.
239+
tasks.register("integrationTests") {
240+
group = "verification"
241+
description = "Runs the integration test suites of every module."
242+
dependsOn(
243+
":sentry-spring-boot:integrationTest",
244+
":sentry-spring-boot-jakarta:integrationTest",
245+
":sentry-spring-boot-jakarta:integrationTestOtelAgent",
246+
":sentry-spring-boot-4:integrationTest",
247+
)
248+
}
249+
238250
/*
239251
* Adapted from https://github.com/androidx/androidx/blob/c799cba927a71f01ea6b421a8f83c181682633fb/buildSrc/private/src/main/kotlin/androidx/build/MavenUploadHelper.kt#L524-L549
240252
*

0 commit comments

Comments
 (0)