summaryrefslogtreecommitdiffstats
path: root/epsdk-app-onap
diff options
context:
space:
mode:
authorOfir Sonsino <os0695@att.com>2017-09-25 11:32:11 +0300
committerOfir Sonsino <os0695@att.com>2017-09-25 11:32:33 +0300
commit52e8f2cc637335b76b794adb85056f01674497ac (patch)
treeffe8a42361650ffbbeef0bf6a93e11e68ef4dd59 /epsdk-app-onap
parent426bc05311d51d6a18d7e12e26a951f913bad889 (diff)
Fix SONAR Jacoco plugin - add report
Issue-ID: VID-60 Change-Id: I6fd155d35de30f25b727169fdc1c29f04248e2b4 Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'epsdk-app-onap')
-rwxr-xr-xepsdk-app-onap/pom.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/epsdk-app-onap/pom.xml b/epsdk-app-onap/pom.xml
index 0fb1e2b4..1dc9341d 100755
--- a/epsdk-app-onap/pom.xml
+++ b/epsdk-app-onap/pom.xml
@@ -240,6 +240,20 @@
<destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
</configuration>
</execution>
+ <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
+ <execution>
+ <id>post-unit-test</id>
+ <phase>test</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ <configuration>
+ <!-- Sets the path to the file which contains the execution data. -->
+ <dataFile>${sonar.jacoco.reportPath}</dataFile>
+ <!-- Sets the output directory for the code coverage report. -->
+ <outputDirectory>${project.build.directory}/jacoco_report</outputDirectory>
+ </configuration>
+ </execution>
</executions>
</plugin>
</plugins>