Hi, I am using ExpectSpec framework in Android. I try to use
@RobolectoricTest
.
Copy code
@RobolectricTest
class ChannelFragmentKotest : ExpectSpec({
But, I cannot solve below error… 😞 Anyone can help me?!
Copy code
No instrumentation registered! Must run under a registering instrumentation.
java.lang.IllegalStateException: No instrumentation registered! Must run under a registering instrumentation.
s
sam
08/07/2023, 12:49 AM
Roboelectric doesn't work well outside of junit
👍 2
d
Doo
08/07/2023, 12:57 AM
@sam Thank you! But, I didn’t understand the meaning of
That's for version 5.2, and it was always experimental. We decided to drop support of Robolectric after their update broke our integration and we had no core developers able to maintain it
LeoColman
08/07/2023, 3:32 AM
We unfortunately stopped releasing versions compatible with Robolectric a couple of majors ago. However, if version 0.5.0 of the extension was working for you, it's still published and should work again
Outside of JUnit means Kotest. Kotest is not JUnit eventhough we keep some integration with JUnit 5 and JUnit 4
Robolectric is very hardcoded for JUnit, which means it's very hard to integrate with Kotest.