Skip to content
Snippets Groups Projects
Verified Commit 3a572e99 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

test: generate covorage report

parent 03ef86c8
No related branches found
No related tags found
No related merge requests found
......@@ -43,13 +43,7 @@ prepare:
- go vet ./...
rules: *feature-rules
test-all-but-store:
stage: test
script:
- go test -v -cover $(go list ./... | grep -v tank/store)
rules: *feature-rules
test-store-postgres:
test-all:
stage: test
services:
- postgres:14
......@@ -61,7 +55,14 @@ test-store-postgres:
AURA_TANK_TEST_DB_HOST: "postgres"
script:
- go run contrib/waitfor-tcp.go postgres:5432 30
- go test -v -cover ./store
- go test $(go list ./... | grep -v api/docs) -coverprofile=coverage.out -covermode count
- go get github.com/boumenot/gocover-cobertura
- go run github.com/boumenot/gocover-cobertura < coverage.out > coverage.xml
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
rules: *feature-rules
build:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment