assumeTrue

fun assumeTrue(message: String, condition: Boolean)

Parameters

condition

If false an AssumptionViolatedException is thrown by this method and the test case (should be) ignored (or rather technically, flagged as a failure not passing a certain assumption). Tests that are assumption-failures do not break builds (again: typically).

message

Message to be included in the exception's string.