Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make `expectThat(subject, block)` return `Unit` #190

Waltorw opened this issue Oct 24, 2019 · 1 comment

Make `expectThat(subject, block)` return `Unit` #190

Waltorw opened this issue Oct 24, 2019 · 1 comment


Copy link

@Waltorw Waltorw commented Oct 24, 2019

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.


This comment has been minimized.

Copy link

@robfletcher robfletcher commented Nov 23, 2019

Yeah, that seems reasonable. I'll check that it's not breaking anything vital.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.