On Tuesday, March 12, 2019 at 2:18:03 PM UTC-7, Evgeny Mandrikov wrote: > On Tuesday, March 12, 2019 at 8:09:22 PM UTC+1, [email protected] wrote: > I have one final question. Does "prepare-agent" goal require /src/main/java > or does it reuse existing class files in /target to instrument them? > > > Again please read documentation - > https://www.jacoco.org/jacoco/trunk/doc/prepare-agent-mojo.html , which states > > > Prepares a property pointing to the JaCoCo runtime agent that can be passed > as a VM argument to the application under test. > > > > No more, no less, i.e. nor source files, nor class files are involved during > execution of "prepare-agent". > When JVM uses this agent ( https://www.jacoco.org/jacoco/trunk/doc/agent.html > ) classes files loaded during execution of this JVM will be instrumented > on-the-fly no matter from where they come.
Thank you Evgeny. That was my suspicion, but again i'm just starting to use this tool and wanted to make absolutely sure. Appreciate all of the help. -- 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/6c71652a-a5b7-46f2-9334-a28f10c40ff9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
