Show HN: Write better Go integration tests with open source dockertest v4
Category: devtools
Tags: testing, integration-tests, docker, go, database-testing
Score: 6.3/10 (Innovation: 4, Technical: 6, Documentation: 8, Utility: 7)
Dockertest v4 is a Go library for running integration tests against Docker containers, providing a clean API to spin up and manage services like databases. Its key innovation is automatic container reuse across test runs, which significantly speeds up test execution. It's particularly useful for developers who need to test against real external services without complex mocking.
Target audience: backend devs
Repository: https://github.com/ory/dockertest/tree/v4 · Go · Apache-2.0 · 4490 stars
View on Hacker News