[K/JS] Rework kotlin tests compilation to make it works with per-file granularity ^KT-61525 Fixed
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1697
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// TARGET_FRONTEND: ClassicFrontend
|
||||
// FIR status: expect/actual in one module
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// SKIP_DCE_DRIVEN
|
||||
// RUN_UNIT_TESTS
|
||||
// ES_MODULES
|
||||
|
||||
// FILE: lib.kt
|
||||
import kotlin.test.Test
|
||||
|
||||
expect class PlatformTest {
|
||||
@Test fun platformTest()
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
import common.*
|
||||
import kotlin.test.Test
|
||||
|
||||
actual class PlatformTest {
|
||||
@Test actual fun platformTest() {}
|
||||
|
||||
@Test fun someOtherTest() {}
|
||||
}
|
||||
|
||||
fun box() = checkLog {
|
||||
suite("PlatformTest") {
|
||||
test("platformTest")
|
||||
test("someOtherTest")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user