Open rgal75 opened 3 years ago
Sorry for the delay! I'm not sure if it is totally possible at the moment, do mind I'm no android dev. Have you tried looking at https://github.com/mannodermaus/android-junit5? The instrumentation test part of the doc looks interesting. Spek provides a JUnit Platform engine (spek-runner-junit5
) which might work with it.
Thanks, I will look into https://github.com/mannodermaus/android-junit5.
I am trying to use Spek 2 for UI testing on Android but I always get an ExceptionInInitializerError when trying to launch an Activity with ActivityScenario.launch(...):
My dependencies are:
My spec:
Is there a sample project that shows how to use Spek 2 with instrumented testing on Android?