Re:Removal of Unsafe in Java 9 – A disaster in the making
by twic on Monday July 13, 2015 @01:53PM
(#9879756)
We can live without Robolectric? How do we write tests for Android code without it?
[ Parent
| on HN ]
Re:Removal of Unsafe in Java 9 – A disaster in the making
by dlubarov on Monday July 13, 2015 @02:43PM
(#9880096)
Turn 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.