Trying to tease out overall coverage numbers

This commit is contained in:
John Donaldson 2022-10-25 13:34:24 -07:00
parent 15b04502df
commit 0d227f8f32
1 changed files with 2 additions and 1 deletions

View File

@ -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: