Hi Amit,

Are you able to generate the coverage metrics ? Even, I did end-up in not
generating the metrics using Jacoco. The report gets generated, and if i
click on sessions link which goes to classes and binary ID. However, the
classes does not have the link to see the coverage metrics.

Did you follow any changes to reflect the coverage ?

-Mohan

On Fri, 15 May 2020 at 15:59, Marc Hoffmann <[email protected]>
wrote:

> Please see our FAQ: https://www.jacoco.org/jacoco/trunk/doc/faq.html
>
> 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
> <https://www.jacoco.org/jacoco/trunk/doc/classids.html> for a detailed
> discussion.
>
>
> Regards,
> -marc
>
>
> On 15. May 2020, at 09:34, Amith Patil <[email protected]> wrote:
>
> Hi Marc,
>
> <jacocoreport.PNG>
>
>
>
>
>
>
>
>
> I see the classes listed in the "Sessions" but what i dont see is the link
> to the classes. Is it something to worry? When this can happen?
>
> Thanks,
> Amith
>
>
> On Friday, May 15, 2020 at 11:50:16 AM UTC+5:30, Marc R. Hoffmann wrote:
>>
>> Hi Amith,
>>
>> when you click on the “Sessions” link in the top right corner of the html
>> report. What do you see here?
>>
>> * Are your classes under test listed?
>> * Do the class names have links?
>>
>> Regards,
>> -marc
>>
>>
>> On 14. May 2020, at 14:06, Amith Patil <[email protected]> wrote:
>>
>> Hi Mandrikov,
>>
>> I was able to generate report. But when i copied the dump file
>> * "jacoco.exec"* from the docker container
>> and ran below command in my windows laptop against my project to generate
>> code coverage report:
>>
>> *java -jar libs/jacococli.jar report jacoco.exec --classfiles
>> target/classes/com --sourcefiles src/main/java/ --html code-coverage-report*
>>
>> I see the report for all the classes shows coverage as 0% which is not
>> correct.
>>
>> Please let me know what is wrong here? How can i generate the report
>> using dump file copied from docker container?
>>
>> Thanks in Advance.
>>
>> Thanks,
>> Amith
>>
>> On Monday, April 27, 2020 at 6:55:26 PM UTC+5:30, Evgeny Mandrikov wrote:
>>>
>>> Similar questions were answered many times - please use search.
>>>
>>> For example:
>>> https://groups.google.com/d/msg/jacoco/Jdgz90jw3ZY/YUAvvA7KBwAJ
>>>
>>> On Monday, April 27, 2020 at 3:11:06 PM UTC+2, [email protected] wrote:
>>>>
>>>> Hi All,
>>>>
>>>> Im running jacocoagent.jar inside docker contanier by passing JAVA_OPTS
>>>> options. Everything is fine except for the part that im not able to
>>>> generate output file for execution data. I see the file getting
>>>> generated but its blank. Nothing is present in the file.
>>>>
>>>> Command: java 
>>>> -javaagent:/appl/si/resources/jacocoagent.jar=append=true,output=file,destfile=/appl/si/resources/jacoco.exec
>>>> -jar linkage.jar
>>>>
>>>> This runs inside the docker container and i see the file "jacoco.exec"
>>>> getting generated but with size 0.
>>>>
>>>> Anybody knows what is wrong in the approach i have choosen?
>>>>
>>>> ls -lrt:
>>>> -rwxrwxrwx.  1 root root     281427 Apr 23 12:02 jacocoagent.jar
>>>> -rw-r--r--.       1 root 40002         0   Apr 27 12:50 jacoco.exec
>>>>
>>>> Please help!
>>>>
>>>> Thanks,
>>>> Amith
>>>>
>>>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jacoco/17900960-92c2-499f-b8fc-7f6f7933b629%40googlegroups.com
>> <https://groups.google.com/d/msgid/jacoco/17900960-92c2-499f-b8fc-7f6f7933b629%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/f5e4cc7c-c0c3-494d-98ae-1aadf4b13855%40googlegroups.com
> <https://groups.google.com/d/msgid/jacoco/f5e4cc7c-c0c3-494d-98ae-1aadf4b13855%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> <jacocoreport.PNG>
>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/C5150DC4-1DAA-4ADF-9F75-9B1E33F94356%40mountainminds.com
> <https://groups.google.com/d/msgid/jacoco/C5150DC4-1DAA-4ADF-9F75-9B1E33F94356%40mountainminds.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/CAE-kxOf2_dbCk%2BDddOc%2BxyB5WV%3DeJNLO8vBA0GJZ3wNycwWsSQ%40mail.gmail.com.

Reply via email to