Testing
Robolectric: Unit Testing Android Apps Without an Emulator
Robolectric runs Android tests on the JVM — no emulator, no device, no waiting for adb to connect. It implements Android's framework classes as JVM-compatible stubs, so your Activities, Fragments, ViewModels, and Repositories run in a regular JUnit test process. A Robolectric test suite that takes 30 seconds