Hi, I am going through the tests to see how they w...
# touchlab-tools
r
Hi, I am going through the tests to see how they work. The BreedModelTest runs and passes without a device or emulator, how is this possible when it needs a database?
r
On Android we're using Robolectric to run in junit. On iOS, tests run on a headless version of the simulator, and we pass a flag to use an in-memory-only database
SqlDelight also has a pure-JVM driver that can be used to spin up an in-memory database in JUnit if you prefer not using Robolectric
r
so the default for the test is to use sqlite that comes with Robolectric?
r
Out-of-the-box, I think it just fails. But KaMPKit configures it to work with Robolectric on Android
🙌 1