Show HN: Petri – Drop-in Postgres image that forks a DB per test
Category: devtools
Tags: test-isolation, postgres, testing
Score: 7.0/10 (Innovation: 7, Technical: 8, Documentation: 6, Utility: 7)
Petri provides a drop-in replacement for the standard PostgreSQL Docker image, forking a dedicated database per test connection to eliminate shared-state flakiness. It is interesting because it offers a zero-cleanup, zero-configuration solution that works with existing test frameworks by simply pointing tests at a different port.
Target audience: backend devs
Repository: https://github.com/taktekhq/petri · Go
View on Hacker News