After running mvn jacoco:report
how can We print coverage percentage on console ?
I can see it in browser but want it to print in jenkins.
After running mvn jacoco:report
how can We print coverage percentage on console ?
I can see it in browser but want it to print in jenkins.
I got it with below command:
awk -F, \
'{ instructions += $4 + $5; covered += $5 } END \
{ print covered, "/", instructions, " instructions covered"; \
print 100*covered/instructions, "% covered" }' \
target/site/jacoco/jacoco.csv