1,install Java Extension Pack extension,
2,edit pom.xml below:
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
3,run ur test source in testing tag(like a FLASK)
4,run command at the path of pom.xml:
mvn jacoco:prepare-agent test install jacoco:report
5,see ur coverage at target\site\jacoco
02-28
240