[Native][tests] Tests to check dumped test listing

^KT-50316
This commit is contained in:
Dmitriy Dolovov
2022-02-11 19:14:20 +03:00
parent 5500e3a332
commit 26ffd66a54
8 changed files with 232 additions and 0 deletions
@@ -0,0 +1,21 @@
package infrastructure.testListing.bar
import kotlin.test.*
@Test
fun topLevel() = Unit
class Outer {
@Test
fun outer() = Unit
class Nested {
@Test
fun nested() = Unit
}
}
object O {
@Test
fun testObject() = Unit
}
@@ -0,0 +1,9 @@
package infrastructure.testListing.bar
import kotlin.test.*
import infrastructure.testListing.foo.fortyTwo
@Test
fun testFortyTwo() {
assertEquals(42, fortyTwo())
}
@@ -0,0 +1,5 @@
infrastructure/testListing/bar/Common_testsKt:topLevel
infrastructure/testListing/bar/O:testObject
infrastructure/testListing/bar/Outer.Nested:nested
infrastructure/testListing/bar/Outer:outer
infrastructure/testListing/bar/Util_testsKt:testFortyTwo
@@ -0,0 +1,21 @@
package infrastructure.testListing.foo
import kotlin.test.*
@Test
fun topLevel() = Unit
class Outer {
@Test
fun outer() = Unit
class Nested {
@Test
fun nested() = Unit
}
}
object O {
@Test
fun testObject() = Unit
}
@@ -0,0 +1,3 @@
package infrastructure.testListing.foo
fun fortyTwo() = 42