From 5e17c5b9311ba58b5fb9064d9673908bf010a780 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Thu, 1 Apr 2021 17:46:25 -0400 Subject: [PATCH] Attmpt to generate coverge --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 948dccf..6273bbf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,14 +25,15 @@ pipeline { stage('Test') { steps { - sh "go test -coverprofile=cover.out ./... -v" + sh "go test ./... -v" } } stage('Test Coverage') { steps { - sh "go get github.com/t-yuki/gocover-cobertura" - sh "go run gocover-cobertura < cover.out > coverage.xml" + sh "go get github.com/axw/gocov/..." + sh "go get github.com/AlekSi/gocov-xml" + sh "gocov test github.com/gorilla/mux | gocov-xml > coverage.xml" } } }