Eclipse - Java - Gradle is skipping jacocoTestReport
I was able to generate the code coverage results with the following set up.
apply plugin: 'jacoco'
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/jacocoHtml"
}
}
The task will only run if coverage data is available. You can make sure of that by also running the test
task.
Source - Running jacocoReport