Reputation: 150
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
Upvotes: 4
Views: 2480
Reputation: 76
This is for other people who search for similar solution...
Upvotes: 0