fail
Marks a test as having failed if this point in the execution path is reached, with an optional message.
Since Kotlin
1.0Marks a test as having failed if this point in the execution path is reached, with an optional message and cause exception.
The cause exception is set as the root cause of the test failure.