Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 679 Bytes

File metadata and controls

13 lines (8 loc) · 679 Bytes

Testing a Flow UseCase

A test for a UseCase that returns a Flow needs a way to observe the items emitted by Flow.

In order to observe those results, we launch inside coroutinesTestRule.testDispatcher.runBlockingTest block and make use of FlowAssert for the verifications.

FlowAssert is a helper class created by Square's Engineering team for usage in SQLDelight, so all copyrights belong to them.

More info about FlowAssert here: