Groups
Groups
Sign in
Groups
Groups
JaCoCo and EclEmma Users
Conversations
About
Send feedback
Help
Does jacoco instrument/report on classes in the Boot Class Loader?
50 views
Skip to first unread message
Ted Hulick
unread,
Dec 16, 2020, 11:01:19 AM
12/16/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JaCoCo and EclEmma Users
Hi,
Using the Jacoco gradle plugin - I cannot get Jacoco to do coverage on my boot classes - I get 0 coverage although it will add them to the report....
I know for a fact the classes are not loaded until the Jacoco java agent is loaded....
Thoughts?
Ted
Evgeny Mandrikov
unread,
Dec 16, 2020, 11:18:51 AM
12/16/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JaCoCo and EclEmma Users
Hi,
I have feeling that this is about JaCoCo agent option "inclbootstrapclasses" that defaults to "false" - see
https://www.jacoco.org/jacoco/trunk/doc/agent.html
> inclbootstrapclasses
> Specifies whether also classes from the bootstrap classloader should be instrumented. Use this feature with caution, it needs heavy includes/excludes tuning.
As you can see on page
https://www.jacoco.org/jacoco/trunk/doc/integrations.html
JaCoCo Gradle Plugin is not developed by us, so how to configure this agent option using Gradle Plugin is a question to developers of this plugin -
https://github.com/gradle/gradle
Regards,
Evgeny
Ted Hulick (ted6030)
unread,
Dec 16, 2020, 11:23:37 AM
12/16/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JaCoCo and EclEmma Users
Thanks for the tip - I will check that out....
Cheers,
Ted
From:
jac...@googlegroups.com
<
jac...@googlegroups.com
> on behalf of Evgeny Mandrikov <
mand...@gmail.com
>
Sent:
Wednesday, December 16, 2020 10:18 AM
To:
JaCoCo and EclEmma Users <
jac...@googlegroups.com
>
Subject:
[java code coverage] Re: Does jacoco instrument/report on classes in the Boot Class Loader?
--
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/xb_QI3Jx_f8/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
jacoco+un...@googlegroups.com
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/0b12f4ec-4f7c-49f1-b165-98985fe49acbn%40googlegroups.com
.
Reply all
Reply to author
Forward
0 new messages