We have deployed an application to the Jboss node and configured jacoco properties as mentioned below.
JACOCO_PROPERTIES=-javaagent:/mnt/home/devdepft/jacoco/lib/jacocoagent.jar=destfile=/export/home/devdepft/jboss-as/bin/Jacoco_files/TN/jacoco.exec,append=true,includes=*,output=file
when shutdown the node we are getting .exec file with some content inside. however if we try for coverage report it shows 0%.
Could you please help on this.
Java Version: 1.7
Jboss: 5.4
OS=RHEL 6.9
The typical symptom of class id mismatch is classes not shown as covered although they have been executed during the test. This situation can be easily detected e.g. in the HTML report: Open the Sessions page with the link on the top-right corner. You see a list of all classes where execution data has been collected for. Find the class in questions and check whether the entry has a link to the corresponding coverage report page. If the entry is not linked this means there is a class id mismatch between the class used at runtime and the class provided to create the report.
HiThanks for your update.In our case, We have been doing graceful shutdown both JVM and Jboss. Once we shutdown the JVM we are getting jacoco.exec file around 635kb. However when check for coverage its showing 0%.We are accessing all the class files before terminate the TVM.
--ThanksVasanth