Dual Testing
Strategy for Go projects: integration tests verify the full chain works, unit tests verify error handling logic. Derived from real implementations across multiple Go microservices using Vertical Slice Architecture, Gin, pgx/pgxpool, MongoDB, and testcontainers-go.
Core Rule
Integration tests (testcontainers) and unit tests (mocks) have different responsibilities:
- Integration tests prove that the full chain works end-to-end: HTTP request → middleware → handler
[Description truncada. Veja o README completo no GitHub.]