dispatch-test-junit5
Contents
#features
#coroutinetest-example
#coroutinetestextension-example
#setting-dispatchersmain
#this-module-replaces-dispatch-test
#junit-dependencies
#minimum-gradle-config
#junit-4-interoperability
Features
In addition to all the functionality in dispatch-test, this module exposes a JUnit 5 CoroutineTestExtension and CoroutineTest annotation to handle set-up and tear-down of a TestProvidedCoroutineScope.
Since TestProvidedCoroutineScope is a TestCoroutineScope, this Extension also invokes cleanupTestCoroutines after the test.
CoroutineTest example
Content copied to clipboard