add coverage

This commit is contained in:
Thomas Peetz
2022-02-16 08:02:23 +01:00
parent 2005932e88
commit 009463c00c
+3
View File
@@ -26,10 +26,13 @@ Test Go Application:
script:
- make test
- go test -v ./... 2>&1 | /home/gitlab-runner/go/bin/go-junit-report > report.xml
- go test -coverprofile=coverage.out ./...
- /home/gitlab-runner/go/bin/gocover-cobertura < coverage.out > coverage.xml
- go vet ./...
artifacts:
reports:
junit: report.xml
cobertura: coverage.xml
Code analysis:
stage: analysis