We used H2 for integration tests for years. Every few months a query that passed on H2 failed on Postgres i…
Harshita
SDET | Playwright, Selenium, REST Assured | Quality is a team sport
We used H2 for integration tests for years. Every few months a query that passed on H2 failed on Postgres in prod.
Moved to Testcontainers with the real Postgres image + reusable containers. Test suite went from 6 to 8 minutes, and we haven't had a dialect bug since.
Tip: enable container reuse locally (testcontainers.reuse.enable=true) and the suite feels almost as fast as H2.
9 reactions4 comments
