From e36f22292d6947b012ffd6468635865baf94d29d Mon Sep 17 00:00:00 2001 From: Peter Stace Date: Fri, 6 Feb 2026 06:04:21 +1100 Subject: [PATCH] Fix coverage numbers by instrumenting all packages Add -coverpkg=./... to the unit test command so that cross-package test coverage is counted. Previously, tests in packages like xmltest that exercise code in other packages (e.g. jts) didn't contribute to the coverage profile. --- .ci/compose-unit.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/compose-unit.yaml b/.ci/compose-unit.yaml index 7137258c..801251ea 100644 --- a/.ci/compose-unit.yaml +++ b/.ci/compose-unit.yaml @@ -3,7 +3,7 @@ services: image: golang:1.18 working_dir: /go/src/github.com/peterstace/simplefeatures entrypoint: >- - go test -covermode=count -coverprofile=coverage.out -test.count=1 -test.run=. + go test -covermode=count -coverpkg=./... -coverprofile=coverage.out -test.count=1 -test.run=. ./carto ./geom ./internal/jtsport/...