Skip to content

Commit 9ebb336

Browse files
Copilottrask
andauthored
Add testStableSemconv coverage for Spring Data test suites (#15937)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: trask <218610+trask@users.noreply.github.com>
1 parent cafd23a commit 9ebb336

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

instrumentation/spring/spring-data/spring-data-3.0/testing/build.gradle.kts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,16 @@ tasks {
5050
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
5151
}
5252

53-
val testStableSemconv by registering(Test::class) {
54-
testClassesDirs = sourceSets.test.get().output.classesDirs
55-
classpath = sourceSets.test.get().runtimeClasspath
56-
jvmArgs("-Dotel.semconv-stability.opt-in=database")
53+
val stableSemconvSuites = testing.suites.withType(JvmTestSuite::class).map { suite ->
54+
register<Test>("${suite.name}StableSemconv") {
55+
testClassesDirs = suite.sources.output.classesDirs
56+
classpath = suite.sources.runtimeClasspath
57+
58+
jvmArgs("-Dotel.semconv-stability.opt-in=database")
59+
}
5760
}
5861

5962
check {
60-
dependsOn(testing.suites, testStableSemconv)
63+
dependsOn(testing.suites, stableSemconvSuites)
6164
}
6265
}

0 commit comments

Comments
 (0)