I am using maven as build tool. Jacoco for code coverage. Jenkins for CI. Everything is configured properly in pom.xml However, when build is successful, the code coverage report shows 0% code covered.
I configured fields for jacoco on jenkins as, Path to exec files: **/project_name/target/coverage-reports/jacoco-unit.exec
Path to class directories: **/project_name/target/classes
Path to source directories **/project_name/src/main/java
Inclusions: Firstly I tried with **/*Test.class, **/*Spec.class & later by keeping field blank
Just to check if my jacoco version is wrong, I even looked into this
Jacoco version too is correct.
The HTML reports too are generated properly in target
I am wondering why jenkins is not displaying
This is for other people who search for similar solution...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.