Attmpt to generate coverge
Some checks failed
timw4mail/gilo/pipeline/head There was a failure building this commit

This commit is contained in:
Timothy Warren 2021-04-01 17:46:25 -04:00
parent 26f3decced
commit 5e17c5b931

7
Jenkinsfile vendored
View File

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