Compile and run common tests of kotlin-test in kotlin-test-js-ir build
This commit is contained in:
@@ -12,6 +12,11 @@ val commonMainSources by task<Sync> {
|
||||
into("$buildDir/commonMainSources")
|
||||
}
|
||||
|
||||
val commonTestSources by task<Sync> {
|
||||
from("$rootDir/libraries/kotlin.test/common/src/test/kotlin")
|
||||
into("$buildDir/commonTestSources")
|
||||
}
|
||||
|
||||
val jsMainSources by task<Sync> {
|
||||
from("$rootDir/libraries/kotlin.test/js/src")
|
||||
into("$buildDir/jsMainSources")
|
||||
@@ -29,6 +34,9 @@ kotlin {
|
||||
}
|
||||
kotlin.srcDir(commonMainSources.get().destinationDir)
|
||||
}
|
||||
val commonTest by getting {
|
||||
kotlin.srcDir(commonTestSources.get().destinationDir)
|
||||
}
|
||||
val jsMain by getting {
|
||||
dependencies {
|
||||
api(project(":kotlin-stdlib-js-ir"))
|
||||
@@ -55,3 +63,7 @@ tasks.named("compileKotlinJs") {
|
||||
dependsOn(jsMainSources)
|
||||
}
|
||||
|
||||
tasks.named("compileTestKotlinJs") {
|
||||
dependsOn(commonTestSources)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user