Skip to content

Commit 1cd9c1e

Browse files
committed
chore: Make the property ignore buildSrc test only, not integration tests
1 parent 83ee171 commit 1cd9c1e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

buildSrc/build.gradle.kts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,15 @@ tasks.compileKotlin {
6161
testing {
6262
@Suppress("UnstableApiUsage")
6363
suites {
64-
val test by getting() {
64+
val test by getting(JvmTestSuite::class) {
6565
dependencies {
6666
implementation(libs.spock.core)
67-
implementation("org.codehaus.groovy", "groovy-all", "3.0.24")
67+
implementation("org.codehaus.groovy:groovy-all:3.0.24")
68+
}
69+
targets.configureEach {
70+
testTask.configure {
71+
enabled = project.hasProperty("runBuildSrcTests")
72+
}
6873
}
6974
}
7075

@@ -79,10 +84,8 @@ testing {
7984

8085
withType(JvmTestSuite::class).configureEach {
8186
useJUnitJupiter(libs.versions.junit5)
82-
targets.all {
83-
testTask.configure {
84-
enabled = project.hasProperty("runBuildSrcTests")
85-
}
87+
targets.configureEach {
88+
testTask
8689
}
8790
}
8891
}

0 commit comments

Comments
 (0)