4 ms·
I'd be really surprised if most applications that rely on databases can't just use a containerized image of their production database in any environment, includ
by brettgriffin 2y ago
I'd be really surprised if most applications that rely on databases can't just use a containerized image of their production database in any environment, including CI. In fact, the only example I can really think of is when the production database can't be Dockerized (e.g. a proprietary SaaS database like BigQuery or Snowflake).
I'm working on a project that has ~22,000 tests that operate on Docker container of the same version of Postgres used in production. In CI it completes all the database tests in under a minute.
- thom 2y agoAre these parallelised? <3ms overhead for a clean database and test code to interact with it is very good!
- peterldowns 2y agoHow are you doing it? Asking because I wrote an open source project (see me ~shilling~ linking it elsewhere in this comment section) for doing this, but it sounds like you've maybe come up with an even faster way.