3 ms·
* extremely easy to get started. * unmatched testability, since you can now run the same code in CI and production and pass .db files to your tests. * extremely
by glommer 4y ago
* extremely easy to get started.
* unmatched testability, since you can now run the same code in CI and production and pass .db files to your tests.
* extremely cheap and lightweight replication.
- Existenceblinks 4y agoWhat's kind of codes that run on CI AND production? You mean passing a prod-clone.db to test suits instead of fixtures?
- travisjungroth 4y agoI would imagine they mean passing tests.db to the suite instead of fixtures. Normally, you have a "pick 2" situation between run a DB with network access, run SQLite when testing, and run the same DB everywhere. This gets you all three (at other costs, of course). For tests, SQLite is great because it's super fast and easy/fast to backup/setup/teardown.