This project using Robolectric for unit testing (https://github.com/robolectric/robolectric), its very helping to test all functions from activity as controller to database with Data Access Object (DAO), its faster than using emulator. Three (3) files that you must configure regarding using the testing method, unit testing or emulator/device testing: