Hi, Thanks for your reply. I managed to configure the agent for each individual execution which generates a jacoco_xxx.exec. Now I have a lot of exec files and not sure what to do with them. Also I've read on another answer of yours that jacoco needs access to the class files directly from the project. In fact my class files are not part of the project, they're generated on the fly. Is this going to work for me ? Maybe I'm better off creating a maven goal that will generate all these classes inside the project before test phase ?
Thanks Nicolas Le dim. 13 nov. 2022 à 16:19, Marc Hoffmann <[email protected]> a écrit : > Hi Nicolas, > > if you start a new Java process and want to collect coverage for it make > sure to also configure the JaCoCo agent for it. See documentation: > > https://www.jacoco.org/jacoco/trunk/doc/agent.html > > Regards, > -marc > > > On 13. Nov 2022, at 15:22, Nicos109 <[email protected]> wrote: > > Hello, > > I'd like the jacoco report to take into consideraton the parts of the code > covered by other jvms started with a Runtime.exec("java", "Main"). Is there > a way to do this ? > > Thanks > Nicolas > > -- > 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/55950fab-fba3-41d8-b0db-dc7038af7a9dn%40googlegroups.com > <https://groups.google.com/d/msgid/jacoco/55950fab-fba3-41d8-b0db-dc7038af7a9dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- > 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/PAzo5-C8orc/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/5307C34E-0E82-4BC3-9C8C-092FE52D83D5%40mountainminds.com > <https://groups.google.com/d/msgid/jacoco/5307C34E-0E82-4BC3-9C8C-092FE52D83D5%40mountainminds.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/CAEpX__ATYn2gbTjn2aV9MXfN9343m95u%2Bw122WZspZy62C6cog%40mail.gmail.com.
