Re: Attaching Java Agent to Tests Using Custom Plugin

2018-10-16 Thread Thomas Broyer
Have a look at how JaCoCo does it, as AFAICT it has exactly the same needs: https://www.eclemma.org/jacoco/trunk/doc/maven.html (source code: https://github.com/jacoco/jacoco/tree/master/jacoco-maven-plugin/src/org/jacoco/maven ) TL;DR: prepare-agent goal sets a property that you can then use to

Attaching Java Agent to Tests Using Custom Plugin

2018-10-16 Thread James Owen
Hi, I am currently trying to write a custom plugin that does two things 1. Attach a java agent to the JVM when the tests are running, causing some instrumentation to be logged 2. Analyze the logged instrumentation and report back to the user I have the second part working, but I'm