is anyone using SQ Delight w/ robolectric? I am ge...
# squarelibraries
k
is anyone using SQ Delight w/ robolectric? I am getting: Caused by: java.util.concurrent.ExecutionException: com.almworks.sqlite4java.SQLiteException: [14] unable to open database file
r
What driver are you using? Without Robolectric you generally want to use the jdbc driver but with Robolectric you want to use the Android driver.
k
Android
r
That's the limit of my knowledge then, sorry. I have had it working though in https://github.com/russhwolf/soluna but not on the most recent versions of everything
k
i don't see where you're connecting your kotlin source sets to the android gradle plugin
it also looks like you may be using an in-memory DB for your tests
r
yes I am
sqldelight stuff happens in
:soluna-mobile:shared
but yeah I see the difference now re in-memory, so this isn't a helpful example for you
k
I can do that as well, just prefer to be closer to production env.
turns out I was using the wrong context on
RuntimeEnvironment