./gradlew jacocoTestReport in our local machine we are getting the xml report with code coverage generated correctly.
When we execute the same inside a linux docker container, We are seeing that the xmlreport generated does not contain the code coverage metrics.
On comparing the exec files within and outside the container, They are of the same size. I also tried copying the exec file from my local to the container and tried running the above task again, Still the xml report does not get generated with the required metrics. Can you help us trouble shoot this difference in behavior?
Thilaknath Ashok Kumar
Why does a class show as not covered although it has been executed?
First make sure execution data has been collected. For this select the Sessions link on the top right corner of the HTML report and check whether the class in question is listed. If it is listed but not linked the class at execution time is a different class file. Make sure you're using the exact same class file at runtime as for report generation. Note that some tools (e.g. EJB containers, mocking frameworks) might modify your class files at runtime. Please see the chapter about class ids for a detailed discussion.
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/4246690f-ff20-4b64-97d5-068a0db2a5a8n%40googlegroups.com.