HI Diego,

1. Can you please elaborate on this a bit more? Do you mean that you want to 
collect coverage information only for specific users?

2. Yes it is. JaCoCo has an in-process API 
<https://www.jacoco.org/jacoco/trunk/doc/api/org/jacoco/agent/rt/package-frame.html>
 as well es a remote control option. For the latter die ExecDump.java 
<https://www.jacoco.org/jacoco/trunk/doc/api.html> example and the remote 
protocol 
<https://www.jacoco.org/jacoco/trunk/doc/api/org/jacoco/core/runtime/RemoteControlWriter.html#visitDumpCommand(boolean,%20boolean)>.

Regards,
-marc



> On 20. May 2024, at 21:06, Diego Flávia <diego.flavia...@gmail.com> wrote:
> 
> Hi,
> 
> I've started using jacocoagent in a service with some API test suite, but 
> I've got some requirements due to the environment the API test suite runs.
> 
> I'm asking here because I couldn't find in the documentation.
> 
> 1. I need to, somehow, register the coverage filtering by some context custom 
> property, like "user", that is setted when a request is received.
> 
> 2. Is it possible reset the agent without restarting the service?
> 
> Any input will be appreciated! Thank you!
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> <mailto:jacoco+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/ef7de037-aca4-45d6-90cd-b7e40baa64a4n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/ef7de037-aca4-45d6-90cd-b7e40baa64a4n%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 jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/DA9A34F5-445E-4DDC-9B92-860791446411%40mountainminds.com.

Reply via email to