artem_zin
07/06/2016, 7:59 AMMethod getMainLooper in android.os.Looper not mocked. means that you’re trying to use class (in particular Looper) from Android SDK during jvm tests, Android Gradle Plugin creates mocked jar of Android SDK classes without implementation.
It’s not related to Spek and there are several solutions:
* Don’t touch Android SDK classes in jvm tests
* Use Robolectric
* Write test as instrumentation test to run it on device/emulator instead of jvm