fail

fun fail(message: String? = null): Nothing(source)

Marks a test as having failed if this point in the execution path is reached, with an optional message.

Since Kotlin

1.0