Add coverage report

This commit is contained in:
sirkrypt0
2021-04-30 15:26:59 +02:00
parent a23ed540ef
commit cff6997337

View File

@ -45,7 +45,14 @@ test:
stage: test
needs: []
script:
- go test ./... -v
- go test ./... -v -coverprofile coverage.cov
- go tool cover -func=coverage.cov
- go tool cover -html=coverage.cov -o coverage.html
artifacts:
paths:
- coverage.html
expire_in: 1 week
expose_as: coverageReport
dockerimage:
stage: docker