From 0d227f8f32521771fc54b530bc0bf601d9b87e60 Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Tue, 25 Oct 2022 13:34:24 -0700 Subject: [PATCH] Trying to tease out overall coverage numbers --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e6aea8..c339038 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,7 +14,8 @@ test: - go test -coverprofile=coverage.txt -covermode=atomic -race ./... - go get github.com/boumenot/gocover-cobertura - go run github.com/boumenot/gocover-cobertura < coverage.txt > coverage.xml - coverage: /^coverage:\s(\d+(?:\.\d+)?%)/ + - go tool cover -func coverage.txt + coverage: \(statements\)(?:\s+)?(\d+(?:\.\d+)?%) artifacts: reports: coverage_report: