Is there anyway to set your database to a certain version and then migrate it for unit/ Integration tests. I'm currently trying to automatically populate my database at certain versions with queries generated from code. I unit tested it with JdbcSqliteDriver and it worked fine, but the android part of my app it didn't, which may be because i'm using AndroidSqliteDriver.Callback and overriding onUpgrade and may have done it incorrectly.
The problem is that now I have no way to test if it works , i've tried using SupportSQLiteOpenHelper.Callback and passing version to it instead AndroidSqliteDriver.Callback but when I try to migrate using Schema.migrate onUpgrade isn't called and the version doesn't change, the version doesn't change with the JdbcSqliteDriver either but the data is inserted and selected correctly and the tests pass.