https://kotlinlang.org logo
#kotest
Title
# kotest
d

dave08

01/23/2022, 2:17 PM
@LeoColman Did something change in the Robolectric extension? I started getting
No instrumentation registered! Must run under a registering instrumentation.
... I'm using kotest 4.6.4 and tried the 0.5.0 and 0.4.0 extensions...
l

LeoColman

01/23/2022, 2:40 PM
Hey Dave! Sorry, I'm not that active with the robolectric extension anymore. I don't know what have changed recently
d

dave08

01/23/2022, 2:50 PM
So you don't use Kotest for Robolectric testing?
l

LeoColman

01/23/2022, 2:59 PM
I do for some tests, yes
Mostly I don't use robolectric at all
d

dave08

01/23/2022, 3:04 PM
Aah... it looks like @matsudamper is the one that fixed it for 4.6... I was just wondering if you migrated away from it because it would be hard for Kotest to support all the JUnit rules from AndroidX... if so, I guess I wouldn't try to make it work...
m

matsudamper

01/24/2022, 3:18 AM
d

dave08

01/24/2022, 3:25 AM
I tried with 0.5.0 which includes that change, I think. It doesn't seem to auto load the extension for some reason
d

dave08

01/24/2022, 10:21 AM
Thanks for the effort 😉, I'll give it a try! But 0.3.0.7? Isn't the current version 0.5.0?
And does it work with the AndroidX JUnit rules somehow?
Ooh... it seems like it has a dependency on Kotest 5.1.x... which itself requires Kotlin 6.x ... we haven't upgraded to Kotlin 6 because certain important plugins we use don't work with it... 🤕
m

matsudamper

01/24/2022, 10:46 AM
Is it jetpack compose?
d

dave08

01/24/2022, 11:10 AM
no
5 Views