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" } } }