ci(tenant-registry): use -coverpkg so server tests count store coverage
ci / shared (pull_request) Successful in 5s
ci / test (pull_request) Failing after 1m0s
ci / image (pull_request) Has been skipped

The store package has no test files of its own (its API is exercised
end-to-end through the server's eachStore harness against both Memory
and Postgres). Without -coverpkg, store/* shows 0% and drags the
total below the 70% gate even though every store method is run.

-coverpkg=./internal/... routes the instrumentation from server tests
into store + config + server alike.

Refs: M4.2
This commit is contained in:
2026-05-19 12:48:05 +02:00
parent 4c46d673fb
commit 4852838347
+5 -3
View File
@@ -78,9 +78,11 @@ jobs:
- name: test
# Coverage scoped to ./internal/... — cmd/server is the entrypoint
# with signal-handling + bind that isn't worth unit-testing. When
# real integration tests land in M4.1, widen this back to ./...
run: go test -race -coverprofile=cover.out ./internal/...
# 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/...
- name: coverage gate
run: |