TestExecutor
Entrypoint to declare a SuiteDsl executed with kotlin-test.
Because kotlin-test
doesn't provide a way to dynamically instantiate tests, we have to cheat. This class abstracts away our hacks to make it work. Please vote on KT-46899.
Because of these hacks, implementing this class has strange requirements:
an implementation class's name must contain
Test
Example
class ExecuteTest : TestExecutor() {
override fun Suite.register() {
test("This is a test") {
println("Hello world!")
}
}
}
Content copied to clipboard
Properties
Link copied to clipboard