fail

Common
JVM
JS
Native
1.0
abstract fun fail(message: String?): Nothing
(source)

Fails the current test with the specified message.

Parameters

message - the message to report.

Common
JVM
JS
Native
1.4
abstract fun fail(
    message: String?,
    cause: Throwable?
): Nothing

(source)

Fails the current test with the specified message and cause exception.

Parameters

message - the message to report.

cause - the exception to set as the root cause of the reported failure.