I am using maven with the jacoco plugin to generate code coverage metrics. I am having some difficulty in configuring the surefire plugin with the java opt
Update the POM.xml as
org.jacoco
jacoco-maven-plugin
0.7.7.201606060606
prepare-agent
report
prepare-package
report
maven-surefire-plugin
2.12.1
${argLine} -XX:PermSize=256m -XX:MaxPermSize=1048m
and then the most important thing is to run the Maven project with goals: mvn jacoco:prepare-agent clean test jacoco:report