aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-10 11:24:03 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-10 11:24:03 +0200
commit3e50af52334df4f33b4af70e10f61ee36dbc546b (patch)
treefba226b24c33ff3afa81282f80ee22eb34f11153 /pom.xml
parentdfbb2fb7e55eb99b777cc4d5f5fc5e2aca8f76c6 (diff)
downloadmoa-zs-3e50af52334df4f33b4af70e10f61ee36dbc546b.tar.gz
moa-zs-3e50af52334df4f33b4af70e10f61ee36dbc546b.tar.bz2
moa-zs-3e50af52334df4f33b4af70e10f61ee36dbc546b.zip
Setup Code Coverage Reports Via jacoco
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml32
1 files changed, 32 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 64e3493..716e901 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,6 +27,7 @@
<jedisclient.version>2.9.3</jedisclient.version>
<guava.version>27.1-jre</guava.version>
<immutable-xjc-plugin.version>1.5</immutable-xjc-plugin.version>
+ <jacoco.version>0.8.3</jacoco.version>
<mzs.ns>http://reference.e-government.gv.at/namespace/zustellung/mzs/app2mzs#</mzs.ns>
<mzs.p.ns>http://reference.e-government.gv.at/namespace/zustellung/mzs/persondata#</mzs.p.ns>
<mzs.wsdl.ns>http://reference.e-government.gv.at/namespace/zustellung/mzs/app2mzs.wsdl</mzs.wsdl.ns>
@@ -159,6 +160,37 @@
</execution>
</executions>
</plugin>
+ <!-- code coverage -->
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${jacoco.version}</version>
+ <configuration>
+ <destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
+ <dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>
+ </configuration>
+ <executions>
+ <execution>
+ <id>default-prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>default-report</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>default-check</id>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>