Skip to content

Commit e6620e1

Browse files
author
Oleksandr Dzhychko
authored
Merge pull request #1173 from modelix/fix-gradle-task-prepareKotlinIdeaImport-for-intellij-import
build(model-client): change Gradle configuration to avoid failing import into Intellij
2 parents a0257f9 + fcfc57d commit e6620e1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

model-client/integration-tests/build.gradle.kts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.tasks.KotlinTest
2+
13
// Tests for a model client that cannot run in isolation.
24
// One such case is starting a server and using the model client from JS at the same time.
35
// This integration tests start a mock server with Docker Compose.
@@ -45,6 +47,11 @@ kotlin {
4547
}
4648
}
4749

48-
dockerCompose.isRequiredBy(tasks.named("jsBrowserTest"))
49-
dockerCompose.isRequiredBy(tasks.named("jsNodeTest"))
50-
dockerCompose.isRequiredBy(tasks.named("jvmTest"))
50+
// The tasks "jsNodeTest" and "jsBrowserTest" are of this type.
51+
tasks.withType(KotlinTest::class).all {
52+
dockerCompose.isRequiredBy(this)
53+
}
54+
// The task "jvmTest" is of this type.
55+
tasks.withType(Test::class).all {
56+
dockerCompose.isRequiredBy(this)
57+
}

0 commit comments

Comments
 (0)