hfhbd
02/17/2026, 5:20 PMjs {
val jsTest = compilations.getByName("test")
val integrationDevTest = compilations.create("integrationDevTest") {
associateWith(jsTest)
}
testRuns.create("integrationDevTest") {
setExecutionSourceFrom(integrationDevTest)
}
}
This does not run tests in jsIntegrationDevTest, only tests in jsTest.Oliver.O
02/17/2026, 8:42 PMassociateWith is meant to associate a test module with its main module in order to gain access to the main module's internal symbols. So that should probably read associateWith(jsMain).
Other than that, I'd be surprised if it would work at all for JS targets.tapchicoma
02/18/2026, 8:53 AMAdam Semenenko
02/18/2026, 11:05 AMAdam Semenenko
02/18/2026, 11:06 AMonlyIf {} is false https://github.com/JetBrains/kotlin/blob/4e8c4e7e9dd805ad77ef36d1ff1748d445f023cd/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/ir/KotlinJsIrSubTarget.kt#L144-L149Oliver.O
02/22/2026, 11:37 AMhfhbd
02/24/2026, 4:59 PMOliver.O
02/24/2026, 5:04 PM