I agree with Evgeny. There is another important requirement in many build setups:
You might want to use a different JDK for running your tests (e.g. when running your test suites against latest JDKs). Cheers, -marc > On 14. Dec 2018, at 16:28, Evgeny Mandrikov <[email protected]> wrote: > > While you can do what Marc proposed, > recommended way of JaCoCo usage/integration - is agent, > mainly because of its simplicity in understanding by end-users, > especially compared to ClassLoaders. > > Moreover > > On Friday, December 14, 2018 at 2:16:06 PM UTC+1, [email protected] wrote: > At the moment, the new Maven Plugin executes tests "in-process" -- > > > IMO execution of tests inside of Maven process is a bad idea in general. > Not only agents can't be used, but also impossible to specify any other JVM > options without affecting Maven - think about "-Xmx", "-D", etc. > So my advice will be to support out-of-Maven-process execution early. After > that support of JaCoCo IMO will be much simpler to develop and maintain for > you, and most importantly simpler to understand for end-users who are already > familiar with usage of JaCoCo with maven-surefire-plugin. > > > -- > 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/d1ac0754-73e2-4572-b0d6-ba93529b8474%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/d1ac0754-73e2-4572-b0d6-ba93529b8474%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/36B57EEC-C96F-4894-8F75-D55B5372315D%40mountainminds.com. For more options, visit https://groups.google.com/d/optout.
