Enhance testing documentation to emphasize the use of embedded/ephemeral Postgres fixtures for tests requiring a database. Update AGENTS.md, README.md, and SKILL.md to reflect this policy and ensure no external DB dependency for standard test runs.
CI / test (push) Successful in 4s
CI / test (push) Successful in 4s
This commit is contained in:
@@ -97,3 +97,9 @@ Workflow: `.gitea/workflows/ci.yml`
|
||||
|
||||
- `go test ./...`
|
||||
- `bun test` in `libs/geo-api-client`
|
||||
|
||||
## Testing policy
|
||||
|
||||
- Keep fast unit tests as the default (`go test ./...`).
|
||||
- If a test requires a real Postgres instance, use embedded/ephemeral Postgres in the test process or test fixture lifecycle.
|
||||
- Do not require manually running an external Postgres container for routine test runs.
|
||||
|
||||
Reference in New Issue
Block a user