Compare commits

..

3 Commits

Author SHA1 Message Date
John Donaldson 5720961e85 Merge branch 'add_unit_test_coverage_report' into 'main'
Add better reporting on unit tests

See merge request devs/moth!178
2022-10-21 21:57:43 +00:00
John Donaldson 466de2d9c6 Let the test handler take care of installing stuff 2022-10-21 14:54:00 -07:00
John Donaldson 92d904150a Add better reporting on unit tests 2022-10-21 14:52:26 -07:00
1 changed files with 8 additions and 2 deletions

View File

@ -11,8 +11,14 @@ test:
- main - main
- merge_requests - merge_requests
script: script:
- go test -race ./... - 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: