Tooling assumptions
- Use a terminal runner with bash and git available.
- Prefer
maketargets when available; fall back to direct CLI commands when needed.
Run
make test-integration
Targeted runs:
go test -v -run TestE2E ./internal/infrastructure/http/server/
go test -v -run TestAPI ./internal/infrastructure/http/server/
What to update when adding/changing endpoints
- Add/adjust OpenAPI (
openapi.yaml) and validate it. - Update integration tests to assert:
- status codes
- auth requirements (missing/invalid token)
- response JSON schema fields
- redirect behavior and analytics side effects
Reference
See docs-site/src/content/docs/operations/integration-testing.md for the current suite structure and scenarios.
微信扫一扫