DEV Community

Discussion on: Running Android Instrumented Tests on CI - from Bitrise.io to GitHub Actions

Collapse
 
iryo400 profile image
Akbolat Sadvakassov

Hi! Thanks for such deep tutorial. It's helpful for beginners in CI like me
What do you think, is there any other way to write tests for Room's Dao classes? Actually I don't have any other instrumented tests for now.
Thanks!

Collapse
 
ychescale9 profile image
Yang

You mean running those DAO tests as regular unit tests that can be run on the host machine without an emulator / real device?

You could try Robolectric, or look at sqldelight which supports using an in memory Sql driver for unit tests. Here’s an example.
Hope that helps!