Skip to content

Commit d3cc308

Browse files
committed
separate android and native tests
1 parent 800df75 commit d3cc308

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

javascript-build-logic/src/main/kotlin/multiplatform-library-convention.gradle.kts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,24 @@ kotlin {
3636

3737
val commonTest by getting
3838

39-
val mobileDeviceTest by creating {
40-
dependsOn(commonTest)
39+
val mobileDeviceTestNative by creating {
4140
kotlin.srcDir("src/mobileDeviceTest/kotlin")
41+
dependsOn(commonTest)
4242
}
43+
4344
val iosTest by creating {
4445
iosX64Test.dependsOn(this)
4546
iosArm64Test.dependsOn(this)
4647
iosSimulatorArm64Test.dependsOn(this)
47-
dependsOn(mobileDeviceTest)
48+
dependsOn(mobileDeviceTestNative)
4849
}
49-
}
50-
}
5150

52-
android {
53-
sourceSets {
54-
getByName("androidTest") {
55-
java.srcDirs("src/mobileDeviceTest/kotlin") // instrumented tests
51+
val mobileDeviceTestAndroid by creating {
52+
kotlin.srcDir("src/mobileDeviceTest/kotlin")
53+
}
54+
55+
val androidInstrumentedTest by getting {
56+
dependsOn(mobileDeviceTestAndroid)
5657
}
5758
}
5859
}

0 commit comments

Comments
 (0)