We have been successful in generating the report by doing the following:
Edited the
project.properties
file to run the JaCoCo agent when unit tests run. This is done by adding the following:test.run.args=-javaagent:[yourpath/]jacocoagent.jar=destfile=[yourpath/]jacoco.exec
Use Netbeans to run the
test
task. This produces thejacoco.exec
file.- Create a simple ant buildfile to generate reports from an
.exec
file (see this post) - Run the ant buildfile to generate the report.