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/c7eb0406-d655-477d-a1c0-41c5ddf8117en%40googlegroups.com.
On 1. Jun 2024, at 09:27, Ashish Ranjan Sinha <ashishra...@gmail.com> wrote:
Hi Marc,
I see the class is already part of the session page. However I am still getting the 0% code coverage for it.
<2024-06-01_12-46-59.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/e3bcd9be-41a4-41e1-84f3-6bbc8b12c0c7n%40googlegroups.com.
<2024-06-01_12-46-35.png><2024-06-01_12-46-59.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/2E12B2D2-0203-40F3-8501-CD18793B58C2%40mountainminds.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CAMMTdifpQ_Jdx%2BE4NNEgJQHsGg_y4qfZDXCWo-kpgtpQChthsw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/3a576cb2-99fc-4253-bf47-ec5c5387733fn%40googlegroups.com.