runtime generated class files for jspx and jsff files are not listed as part of Jacoco Coverage

31 views
Skip to first unread message

ari

unread,
May 9, 2018, 4:58:48 PM5/9/18
to JaCoCo and EclEmma Users

Hi ,
I am looking for sometime class files generated in the Application server (say WEblogic ) when a jspx, jsff files are run.
But the code coverage dump does not capture this files, can you let me know on why they are not recorded ? and is there nay way to capture those runtime class files by the JACOCO agent running in tcp server mode
thanks

Marc Hoffmann

unread,
May 10, 2018, 1:47:12 AM5/10/18
to jac...@googlegroups.com

Hi,

dynamically created classes are excluded by default. You can record execution data by setting the following agent option:

inclnolocationclasses=true

Also note that this will only collect execution data for these classes. They will not show in the report as the report generator needs class files for analysis. There is another option to dump all classes seen by the JaCoCo agent (including generated ones):

classdumpdir=/some/local/path

Please see documentation for details.

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/a6667ad2-0049-48b5-966e-d9d1b4ad20d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Veenavani Revanuru

unread,
May 10, 2018, 9:51:01 PM5/10/18
to jac...@googlegroups.com
Thanks for the above answer. I will check on this.
One more related question.
Is there any way that we can know about what xml/properties files are loaded and exercised during Jacoco execution Data coverage.
I want to figure out what properties files/xml files  are being exercised in jvm while a test is run.
thanks,
Veena

On Wed, May 9, 2018 at 10:47 PM, Marc Hoffmann <hoff...@mountainminds.com> wrote:
Boxbe This message is eligible for Automatic Cleanup! (hoff...@mountainminds.com) Add cleanup rule | More info

Hi,

dynamically created classes are excluded by default. You can record execution data by setting the following agent option:

inclnolocationclasses=true

Also note that this will only collect execution data for these classes. They will not show in the report as the report generator needs class files for analysis. There is another option to dump all classes seen by the JaCoCo agent (including generated ones):

classdumpdir=/some/local/path

Please see documentation for details.

Regards,
-marc

On 2018-05-09 22:58, ari wrote:

--
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+unsubscribe@googlegroups.com.


--
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/o6-39KhdQ98/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/c2f2058d6e5d453bbdaea981d717623a%40mountainminds.com.

Marc Hoffmann

unread,
May 11, 2018, 10:59:02 AM5/11/18
to jac...@googlegroups.com

Hi Veenavani,

JaCoCo tracks whether certain Java byte code IS executed. It does not track WHAT the code actually does. Therefore JaCoCo cannot track whether the code loads specific files.

Regards,
-marc

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/CADX0T0fjsMZ60sjFd8V4aL278feM4tMjqmvj_nBDrQ4nOtGYCA%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