Show HN: Petri – Drop-in Postgres image that forks a DB per test

Isolated, seeded database environments for parallel testing. - taktekhq/petri
4 points by nizarmah 162 days ago github.com 0 comments
Summary not yet generated for this article.

Original Text

Rolling it out at work to parallelize 4,257 tests across 5 services. It fixes our tests running in band and DB mocking in API tests.

It's a drop-in Postgres image, with a Golang proxy. :5432 is passthrough, :5433 forks the DB per conn (CREATE DATABASE … TEMPLATE …, dropped on disconnect).

If you use it, let me know what you like or don't like, so I can make it better. Cheers!

Comments (0 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open