@@ -54,51 +54,79 @@ sourceSets {
5454 }
5555}
5656
57- tasks {
58- val testSlick by registering(Test ::class ) {
59- filter {
60- includeTestsMatching(" SlickTest" )
57+ testing {
58+ suites {
59+ val testSlick by registering(JvmTestSuite ::class ) {
60+ targets {
61+ all {
62+ testTask.configure {
63+ filter {
64+ includeTestsMatching(" SlickTest" )
65+ }
66+ include(" **/SlickTest.*" )
67+ }
68+ }
69+ }
6170 }
62- include(" **/SlickTest.*" )
63- }
6471
65- test {
66- filter {
67- excludeTestsMatching(" SlickTest" )
68- excludeTestsMatching(" PreparedStatementParametersTest" )
72+ val testStableSemconv by registering(JvmTestSuite ::class ) {
73+ targets {
74+ all {
75+ testTask.configure {
76+ filter {
77+ excludeTestsMatching(" SlickTest" )
78+ excludeTestsMatching(" PreparedStatementParametersTest" )
79+ }
80+ jvmArgs(" -Dotel.instrumentation.jdbc-datasource.enabled=true" )
81+ jvmArgs(" -Dotel.semconv-stability.opt-in=database" )
82+ }
83+ }
84+ }
6985 }
70- jvmArgs(" -Dotel.instrumentation.jdbc-datasource.enabled=true" )
71- }
7286
73- val testStableSemconv by registering(Test ::class ) {
74- filter {
75- excludeTestsMatching(" SlickTest" )
76- excludeTestsMatching(" PreparedStatementParametersTest" )
87+ val testSlickStableSemconv by registering(JvmTestSuite ::class ) {
88+ targets {
89+ all {
90+ testTask.configure {
91+ filter {
92+ includeTestsMatching(" SlickTest" )
93+ }
94+ include(" **/SlickTest.*" )
95+ jvmArgs(" -Dotel.semconv-stability.opt-in=database" )
96+ }
97+ }
98+ }
7799 }
78- jvmArgs(" -Dotel.instrumentation.jdbc-datasource.enabled=true" )
79- jvmArgs(" -Dotel.semconv-stability.opt-in=database" )
80- }
81100
82- val testSlickStableSemconv by registering(Test ::class ) {
83- filter {
84- includeTestsMatching(" SlickTest" )
101+ val testCaptureParameters by registering(JvmTestSuite ::class ) {
102+ targets {
103+ all {
104+ testTask.configure {
105+ filter {
106+ includeTestsMatching(" PreparedStatementParametersTest" )
107+ }
108+ jvmArgs(" -Dotel.instrumentation.jdbc.experimental.capture-query-parameters=true" )
109+ }
110+ }
111+ }
85112 }
86- include(" **/SlickTest.*" )
87- jvmArgs(" -Dotel.semconv-stability.opt-in=database" )
88113 }
114+ }
89115
90- val testCaptureParameters by registering(Test ::class ) {
116+ tasks {
117+ test {
91118 filter {
92- includeTestsMatching(" PreparedStatementParametersTest" )
119+ excludeTestsMatching(" SlickTest" )
120+ excludeTestsMatching(" PreparedStatementParametersTest" )
93121 }
94- jvmArgs(" -Dotel.instrumentation.jdbc.experimental.capture-query-parameters =true" )
122+ jvmArgs(" -Dotel.instrumentation.jdbc-datasource.enabled =true" )
95123 }
96124
97125 check {
98- dependsOn(testSlick)
99- dependsOn(testStableSemconv)
100- dependsOn(testSlickStableSemconv)
101- dependsOn(testCaptureParameters)
126+ dependsOn(testing.suites.named( " testSlick" ) )
127+ dependsOn(testing.suites.named( " testStableSemconv" ) )
128+ dependsOn(testing.suites.named( " testSlickStableSemconv" ) )
129+ dependsOn(testing.suites.named( " testCaptureParameters" ) )
102130 }
103131}
104132
0 commit comments