fail

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

Fails the current test with the specified message.

Parameters

message - the message to report.

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

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.