Skip to content

Commit c8fb997

Browse files
committed
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 aren't part of check; the Spring Boot matrices run them. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent d5312e0 commit c8fb997

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
@@ -218,6 +218,18 @@ tasks.register("buildForCodeQL") {
218218
}
219219
}
220220

221+
// Each module's suites start their own servers on free ports, so Gradle can run them all at once.
222+
tasks.register("integrationTests") {
223+
group = "verification"
224+
description = "Runs the integration test suites of every module."
225+
dependsOn(
226+
":sentry-spring-boot:integrationTest",
227+
":sentry-spring-boot-jakarta:integrationTest",
228+
":sentry-spring-boot-jakarta:integrationTestOtelAgent",
229+
":sentry-spring-boot-4:integrationTest",
230+
)
231+
}
232+
221233
/*
222234
* Adapted from https://github.com/androidx/androidx/blob/c799cba927a71f01ea6b421a8f83c181682633fb/buildSrc/private/src/main/kotlin/androidx/build/MavenUploadHelper.kt#L524-L549
223235
*

0 commit comments

Comments
 (0)