mirror of
https://github.com/get-drexa/drive.git
synced 2026-02-02 05:51:18 +00:00
688 B
688 B
Integration tests (Go + testcontainers)
Requirements
- A working Docker daemon reachable from the devcontainer.
- Recommended:
.devcontainer/devcontainer.jsonincludesdocker-outside-of-docker, which uses the host/Codespaces Docker. - Alternative: switch to
docker-in-dockerif you don’t have host Docker access.
- Recommended:
Run
From apps/backend:
go test -tags=integration ./internal/drexa -run TestRegistrationFlow -count=1
Notes:
- The first run pulls
postgres:16-alpine(needs network access). - Tests are tagged
integrationso they never run in normalgo test ./...by accident. - If Docker isn’t available, the test skips (rather than failing).