Closest you can run unit test at the request of SQL (or a similar structure) to configure the SQLite database in memory and execute it.
While this is still technically an integration test, it runs almost as fast as the unit test should.
If you do, just notice the slight differences between SQLite and your real database, and try to make your queries compatible with both.
Hope this helps,
Assaf.
source share