Enhancement: Improved support for Jacoco Code Coverage / FISH-1447 #10
Labels
Status: Accepted
Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev
Type: Enhancement
Label issue as an enhancement request
I'm running the Jacoco Maven plugin for code coverage which involves instrumenting my application by pointing out the location of the Jacoco agent runtime as a VM argument. The runtime location is system dependent so Jacoco comes with goals named prepare-agent and prepare-agent-integration that figures out where the runtime is located and binds that location to property called argLine. The argLine property is later picked up by Surefire and Failsafe using a feature called Late Property Evaluation. See https://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html.
Unfortunately Late Property Evaluation is implemented as a feature in Surefire and Failsafe and not as a global feature in Maven so the argLine property isn't populated under Payara Micro -> Start -> JCommandLineOptions. See https://www.devwithimagination.com/2019/09/03/integration-testing-with-payara-micro to get an idea of the hoops you have to jump through to get Jacoco to work with Payara Micro.
Could you add something similar to Late Property Evaluation to the Start goal so that all you have to do is:
The text was updated successfully, but these errors were encountered: