Launch JaCoCo to genarate coverage report during test phase
Change-Id: Ibde73927237d953de41cdd72e89ed912c6444faa
diff --git a/pom.xml b/pom.xml
index 1b179f3..c62c2cb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -61,6 +61,26 @@
</tags>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>0.8.6</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <!-- attached to Maven test phase -->
+ <execution>
+ <id>report</id>
+ <phase>test</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>