fail

abstract fun fail(message: String?): Nothing(source)

Fails the current test with the specified message.

Since Kotlin

1.0

Parameters

message

the message to report.


abstract fun fail(message: String?, cause: Throwable?): Nothing(source)

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

Since Kotlin

1.4

Parameters

message

the message to report.

cause

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