File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
model-client/integration-tests Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.tasks.KotlinTest
2
+
1
3
// Tests for a model client that cannot run in isolation.
2
4
// One such case is starting a server and using the model client from JS at the same time.
3
5
// This integration tests start a mock server with Docker Compose.
@@ -45,6 +47,11 @@ kotlin {
45
47
}
46
48
}
47
49
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
+ }
You can’t perform that action at this time.
0 commit comments