Unable to drill down to method level code in the report

28 views
Skip to first unread message

suma...@gmail.com

unread,
Oct 18, 2018, 12:22:40 AM10/18/18
to JaCoCo and EclEmma Users
I am using cli to generate report
java -jar jacococli.jar report <path to jacoco.exec> --classfiles <class file location> --sourcefiles <Source file location> --html <report path>

I am getting the report and the coverage % correctly. However, i cant drill down inside the methods to see which part of code is not covered. There is no hyperlink on the method names in the report.
Can you please let me know what is going wrong here.

Marc Hoffmann

unread,
Oct 18, 2018, 12:59:34 AM10/18/18
to jac...@googlegroups.com
Please see our FAQ:

Why does the coverage report not show highlighted source code?

Make sure the following prerequisites are fulfilled to get source code highlighting in JaCoCo coverage reports:

  • Class files must be compiled with debug information to contain line numbers.
  • Source files must be properly supplied at report generation time. I.e. specified source folders must be the direct parent of the folders that define the Java packages.



Regards,
-marc


--
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/70c0c1cd-7d1e-4c1b-9fc3-9d647e0523a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Suman Kumar

unread,
Oct 18, 2018, 1:53:06 AM10/18/18
to jac...@googlegroups.com
Thanks Marc. issue is resolved.

--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/pVzk7hQQGoU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+un...@googlegroups.com.

Marc Hoffmann

unread,
Oct 18, 2018, 2:22:19 AM10/18/18
to jac...@googlegroups.com
Good to know. Thanks for the feedback!
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/CAH-Tso6Uout_JRst8R%3DC8pLgk8Ufn8ZY3UgAbpJ-HH_UrMk%3D5Q%40mail.gmail.com.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages