Make expectThat(subject, block)
return Unit
#190
Labels
💥 breaking change
Will change APIs in a non-backward compatible way
🦄 enhancement
New feature or request
Hi! Can you please consider making
expectThat(subject, block)
returnUnit
instead ofDescribeableBuilder
. Or add differentUnit
returning method with the same behaviour.The problem is when using this method in test which body is basically
runBlocking
suspend block. In this case if the assertion is the last statement the block returns theDescribeableBuilder
from the test method, and JUnit doesn't call nonvoid
(nonUnit
in this case) test methods during test phase.The text was updated successfully, but these errors were encountered: