go-integration-test
Installation
SKILL.md
Go Integration Testing
Overview
Integration tests with real dependencies using testcontainers-go. No mocks for infrastructure — test against actual Postgres and Redis.
Core principle: If it talks to a database, test it with a real database.
When to Use
- Testing repository implementations against real Postgres
- Testing Redis cache/session logic
- Full HTTP lifecycle tests (handler → use case → repo → DB)
- Verifying migration correctness
Testcontainers Setup
//go:build integration