diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index f12ad7d..f293c38 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -77,12 +77,13 @@ jobs: with: { version: v2.12.2 } - name: test - # Coverage scoped to ./internal/... — cmd/server is the entrypoint - # with signal-handling + bind that isn't worth unit-testing. - # -coverpkg lets the server tests count their exercise of store/* — - # store has no test files because every method is exercised end-to-end - # via the server's eachStore harness against both Memory and Postgres. - run: go test -race -coverpkg=./internal/... -coverprofile=cover.out ./internal/... + # Test runs the packages that HAVE test files (server, config). The + # store package is exercised end-to-end via the server's eachStore + # harness against both Memory and Postgres, so we don't need its + # own test binary — and including it triggers a covdata-tool error + # on packages with no _test.go files. -coverpkg makes the server's + # exercise of store/* count toward coverage. + run: go test -race -coverpkg=./internal/... -coverprofile=cover.out ./internal/server/... ./internal/config/... - name: coverage gate run: |