Re: [java code coverage] JaCoCo coverage on production

138 views
Skip to first unread message
Message has been deleted

Marc Hoffmann

unread,
May 17, 2018, 2:54:20 AM5/17/18
to jac...@googlegroups.com

Sure, this is possible. Simply configure the JaCoCo agent for the services:

https://www.jacoco.org/jacoco/trunk/doc/agent.html

Regards,
-marc


On 2018-05-16 20:40, mskh wrote:

Hi all,
 
Our backend services are built as JARs (using Maven) and then deployed as RPMs (using Jenkins) on a dedicated CentOS server. I have already enabled JaCoCo in the POM settings for each of our services and would like to know if it would be possible to attach the JaCoCo agent to any of these running services on production to see how much code is hit by the live traffic coming from customers. 
 
Thanks
Mskh


--
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/6ab4f518-1b59-4f28-9b43-04f4e6c23fd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Message has been deleted

Marc Hoffmann

unread,
May 17, 2018, 4:37:19 AM5/17/18
to jac...@googlegroups.com

Correct. This is what the documentation says.

Please also read the description if the options and see what is suitable for your scenario.


On 2018-05-17 10:16, Majd Harwida wrote:

Thanks Marc!
 
So would this be the right approach attach Jacoco to my service? 
 
Java -javaagent:[yourpath/]jacocoagent.jar=[option1]=[value1] -jar myservicename.jar
 
 
 

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/r1UE3mE-wdI/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/685204ad9d023005bf9076a9c3790d05%40mountainminds.com.

For more options, visit https://groups.google.com/d/optout.
--
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.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages