Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Are these parallelised? <3ms overhead for a clean database and test code to interact with it is very good!


How 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: