From 48528383471693222154870b4d0c0343858eb794 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Tue, 19 May 2026 12:48:05 +0200 Subject: [PATCH] ci(tenant-registry): use -coverpkg so server tests count store coverage 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 --- .gitea/workflows/ci.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index bc9c7c7..f12ad7d 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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: |