I am testing by applying MainCoroutineRule to view...
# android
l
I am testing by applying MainCoroutineRule to viewModel local test And I don’t know why I need to use InstantTaskExecutorRule. InstantTaskExecutorRule description is as follows. all Architecture Components-related background jobs in the same thread so that the test results happen synchronously. But I am only changing liveData with setValue(), Not postValue(). why can’t the test be done without using rules?