Danish Ansari
10/10/2021, 8:03 AMandroidTest source set
Currently I'm testing Room DB Dao in Android and writing test like this
runBlocking {
movieDao.insertCategory(popularMovies)
}
I think that there might be a better way to write test for such scenario because if I have 20 test than I have to write runBlocking 20 timesJavier
10/10/2021, 2:09 PMrunBlockingTest, but you would have the same problemJavier
10/10/2021, 2:10 PMsuspend test functions are allowedJoffrey
10/10/2021, 7:35 PMrunBlockingTest even in the future AFAIU. The biggest problem currently is that it's only available on JVM platform at the moment because the kotlinx-coroutines-test library is not multiplatform yet.Javier
10/10/2021, 7:38 PMJoffrey
10/10/2021, 7:57 PM