Testing Android Functions That Launch Coroutines
Learn how to test Android functions that launch coroutines and how to set a test dispatcher with a rule.
We'll cover the following
We typically start coroutines on ViewModels
, Presenters
, Fragments
, or Activities
on Android. These are fundamental classes, and we should test them. Think of the MainViewModel
implementation below.
Get hands-on with 1400+ tech skills courses.