Hi Yevgeny,

it is possible to talk to the agent through its runtime API: 
https://www.jacoco.org/jacoco/trunk/doc/api/org/jacoco/agent/rt/package-summary.html
 
<https://www.jacoco.org/jacoco/trunk/doc/api/org/jacoco/agent/rt/package-summary.html>

Regards,
-marc




> On 4. Nov 2019, at 21:22, Yevgeny P <[email protected]> wrote:
> 
> Hey Team,
> 
> Let's say I've started a Java program with Jacoco agent. Is it possible to 
> retrieve the coverage from within the Java program itself via somekind of API 
> or it should be an external program?
> I only saw an example doing something similar for a single class without 
> Jacoco agent.
> 
> Thanks,
> Yevgeny
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/ab4e80bc-1c1e-4189-87dc-640d2ce5858a%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/ab4e80bc-1c1e-4189-87dc-640d2ce5858a%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/06005018-0A03-4BF2-B8E3-309C7F51E98D%40mountainminds.com.

Reply via email to