From 20cb23c55361a0620f65a7bbcd838947bfd36903 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 aren't part of check; the Spring Boot matrices run them. 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 898b429cb5..f47a748f4e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -218,6 +218,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 *