for almost half a year Painful manual testing Reproducing same bugs again and AGAIN New developers join with risk Integration testing Slow Not reliable No fun Robolectric FuN~
No dexing, packaging, installation process. No emulator or device needed Run on JVM Fast Freedom Can use reflection without worry about performance Can use big libraries, large jar file: apache common, google libraries like truth, guava. Fast debugging and possible hot code swapping Test behavior not implementation
the ImageView class (Robolectric creates and uses shadow object instead of the real object if possible, look here) Record state for testing verification Simplify behaviors Shadow RealObject