1
0
Fork 0

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

This commit is contained in:
Timothy Warren 2021-04-01 17:46:25 -04:00
parent 26f3decced
commit 5e17c5b931
1 changed files with 4 additions and 3 deletions

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