Add better reporting on unit tests

This commit is contained in:
John Donaldson 2022-10-21 14:52:26 -07:00
parent 8e0f4561a5
commit 92d904150a
1 changed files with 9 additions and 2 deletions

View File

@ -11,8 +11,15 @@ test:
- main - main
- merge_requests - merge_requests
script: script:
- go test -race ./... - go install
- 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
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
push: push:
stage: push stage: push
rules: rules: