[Wasm] Add K2 gradle integration test

This commit is contained in:
Svyatoslav Kuzmich
2023-07-26 16:27:26 +02:00
committed by Space Team
parent 75142230b6
commit 19bdec50f2
3 changed files with 9 additions and 1 deletions
@@ -49,7 +49,8 @@ class KotlinToolingMetadataMppIT : BaseGradleIT() {
KotlinPlatformType.common.name.takeIf { !isKpmModelMappingEnabled },
KotlinPlatformType.jvm.name,
KotlinPlatformType.js.name,
KotlinPlatformType.native.name
KotlinPlatformType.native.name,
KotlinPlatformType.wasm.name,
).sorted(),
metadata.projectTargets.map { it.platformType }.sorted()
)
@@ -155,6 +155,12 @@ class TryK2IT : KGPBaseTest() {
assertCompilerArgument(":compileKotlinJs", "-language-version 2.0")
}
build(":compileKotlinWasm") {
assertTasksExecuted(":compileKotlinWasm")
assertCompilerArgument(":compileKotlinWasm", "-language-version 2.0")
}
build(":compileKotlinLinuxX64") {
assertTasksExecuted(":compileKotlinLinuxX64")
@@ -16,6 +16,7 @@ kotlin {
jvm()
js()
linuxX64()
wasm()
sourceSets {
val commonMain by getting {