I tried to get code coverage in a spring - gradle project using the gradle jacoco plugin.
The build.gradle file contains the following
apply plugin: "jacoco" jacoco { toolVersion = "0.7.1.201405082137" reportsDir = file("$buildDir/customJacocoReportDir") } jacocoTestReport { reports { xml.enabled false csv.enabled false html.destination "${buildDir}/jacocoHtml" } }
Then i ran
gradle test jacocoTestReport
When, after creating the build / reports file, the test.exec file is created.
Other than this, nothing happens.
How can I get an HTML report?
build.gradle gradle
prashanth-g
source share