Launch JaCoCo to genarate coverage report during test phase

Change-Id: Ia1bda7fa96d500b872ff8d30b84d80c4ec9f7e07
diff --git a/pom.xml b/pom.xml
index b20425c..c405d5e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -45,6 +45,26 @@
                     <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
                 </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>