question @sam a co-worker of mine just ran into a problem like below
Copy code
test("should print out failing inputs and shrinks when a function throws") {
suspend fun functionThatUnexpectedlyThrows() { throw RuntimeException("aaaa") }
checkAll(Arb.bigInt(4, 4)) { value ->
functionThatUnexpectedlyThrows()
}
}
and then I realized that we don’t report the inputs or attempt any shrinking to the users when the exception is not kotest’s assertion errs. i.e.
Copy code
Property failed after 1 attempts
java.lang.AssertionError: Property failed after 1 attempts
Repeat this test by using seed 320358835705021305
Caused by RuntimeException: aaaa