3 ms·
We can live without Robolectric? How do we write tests for Android code without it?
by twic 11y ago
We can live without Robolectric? How do we write tests for Android code without it?
- dlubarov 11y agoTurn on unitTests.returnDefaultValues, write some mockable wrappers around core classes like SystemClock, unit test what you can, and write instrumentation tests for everything else. An increasing number of teams are moving away from Robolectric anyway, since it's so complex and buggy, and there are some things it will never properly support such as COLLATE LOCALIZED.