unit-tests: Simple support for test classes
This commit is contained in:
@@ -1952,7 +1952,7 @@ task deserialized_members(type: LinkKonanTest) {
|
||||
|
||||
task testing_smoke(type: RunKonanTest) {
|
||||
source = "testing/smoke.kt"
|
||||
flags = [] // TODO: Add flag to generate test-runner
|
||||
flags = ['-tr'] // TODO: Add flag to generate test-runner
|
||||
}
|
||||
|
||||
// Just check that the driver is able to produce runnable binaries.
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import kotlin.test.Test
|
||||
import konan.test.*
|
||||
|
||||
class A {
|
||||
@Test
|
||||
@@ -7,8 +8,17 @@ class A {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun test() {
|
||||
println("test")
|
||||
}
|
||||
//abstract class AA<T> {
|
||||
// abstract fun a(): T
|
||||
//}
|
||||
//
|
||||
//
|
||||
//class BB: AA<Int>() {
|
||||
// override fun a() = 5
|
||||
//}
|
||||
|
||||
//@Test
|
||||
//fun test() {
|
||||
// println("test")
|
||||
//}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user