From 009463c00c7ba2fbd79a1b097f64f59fcc8e3a58 Mon Sep 17 00:00:00 2001 From: Thomas Peetz Date: Wed, 16 Feb 2022 08:02:23 +0100 Subject: [PATCH] add coverage --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 32f9205..2475187 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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