[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.common.name.takeIf { !isKpmModelMappingEnabled },
KotlinPlatformType.jvm.name, KotlinPlatformType.jvm.name,
KotlinPlatformType.js.name, KotlinPlatformType.js.name,
KotlinPlatformType.native.name KotlinPlatformType.native.name,
KotlinPlatformType.wasm.name,
).sorted(), ).sorted(),
metadata.projectTargets.map { it.platformType }.sorted() metadata.projectTargets.map { it.platformType }.sorted()
) )
@@ -155,6 +155,12 @@ class TryK2IT : KGPBaseTest() {
assertCompilerArgument(":compileKotlinJs", "-language-version 2.0") assertCompilerArgument(":compileKotlinJs", "-language-version 2.0")
} }
build(":compileKotlinWasm") {
assertTasksExecuted(":compileKotlinWasm")
assertCompilerArgument(":compileKotlinWasm", "-language-version 2.0")
}
build(":compileKotlinLinuxX64") { build(":compileKotlinLinuxX64") {
assertTasksExecuted(":compileKotlinLinuxX64") assertTasksExecuted(":compileKotlinLinuxX64")
@@ -16,6 +16,7 @@ kotlin {
jvm() jvm()
js() js()
linuxX64() linuxX64()
wasm()
sourceSets { sourceSets {
val commonMain by getting { val commonMain by getting {