Package dispatch.test

Types

Link copied to clipboard
@ExperimentalCoroutinesApi
class TestCoroutineRule(factory: () -> TestProvidedCoroutineScope) : TestWatcher, TestProvidedCoroutineScope

A basic JUnit 4 TestRule which creates a new TestProvidedCoroutineScope for each test, sets Dispatchers.Main, and calls cleanupTestCoroutines afterwards.