Attempt to generate CI coverage
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:21:37 -04:00
parent 1a4f6809fb
commit c64b52ffe1

14
Jenkinsfile vendored
View File

@ -25,8 +25,20 @@ pipeline {
stage('Test') { stage('Test') {
steps { steps {
sh "go test ./... -v" sh "go test -coverprofile=cover.out ./... -v"
}
}
stage('Test Coverage') {
steps {
sh "go get github.com/t-yuki/gocover-cobertura"
sh "gocover-cobertura < cover.out > coverage.xml"
} }
} }
} }
post {
always {
cobertura coberturaReportFile: 'coverage.xml'
}
}
} }