Hi! Can you please consider making expectThat(subject, block) return Unit instead of DescribeableBuilder. Or add different Unit 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 the DescribeableBuilder from the test method, and JUnit doesn't call non void (non Unit in this case) test methods during test phase.
Hi! Can you please consider making
expectThat(subject, block)returnUnitinstead ofDescribeableBuilder. Or add differentUnitreturning method with the same behaviour.The problem is when using this method in test which body is basically
runBlockingsuspend block. In this case if the assertion is the last statement the block returns theDescribeableBuilderfrom the test method, and JUnit doesn't call nonvoid(nonUnitin this case) test methods during test phase.