From d2cbac0cac56366420579198f11a49a4b060be98 Mon Sep 17 00:00:00 2001 From: Nelson Osacky Date: Tue, 20 Oct 2026 16:57:23 +0200 Subject: [PATCH] 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) --- build.gradle.kts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 52e17b1d30..2719c1f51a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -235,6 +235,18 @@ tasks.register("buildForCodeQL") { } } +// Each module's suites start their own servers on free ports, so Gradle can run them all at once. +tasks.register("integrationTests") { + group = "verification" + description = "Runs the integration test suites of every module." + dependsOn( + ":sentry-spring-boot:integrationTest", + ":sentry-spring-boot-jakarta:integrationTest", + ":sentry-spring-boot-jakarta:integrationTestOtelAgent", + ":sentry-spring-boot-4:integrationTest", + ) +} + /* * Adapted from https://github.com/androidx/androidx/blob/c799cba927a71f01ea6b421a8f83c181682633fb/buildSrc/private/src/main/kotlin/androidx/build/MavenUploadHelper.kt#L524-L549 *