ASTERIXDB-1344: Capture Code Coverage Metrics
Collect coverage for integration tests
Change-Id: I9aceb87634f6187ee2522e9ba8a50d39bc811569
Reviewed-on: https://asterix-gerrit.ics.uci.edu/735
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <tillw@apache.org>
diff --git a/asterix-installer/pom.xml b/asterix-installer/pom.xml
index 712d350..96e8fa1 100644
--- a/asterix-installer/pom.xml
+++ b/asterix-installer/pom.xml
@@ -30,7 +30,6 @@
<cluster.test.excludes>**/AsterixClusterLifeCycleIT.java</cluster.test.excludes>
<cluster.extest.excludes>**/ClusterExecutionIT.java</cluster.extest.excludes>
<replication.test.excludes>**/ReplicationIT.java</replication.test.excludes>
- <jacocoArgLine/>
<appendedResourcesDirectory>${basedir}/src/main/appended-resources</appendedResourcesDirectory>
</properties>
@@ -122,6 +121,7 @@
<configuration>
<runOrder>alphabetical</runOrder>
<forkMode>pertest</forkMode>
+ <argLine>${coverageArgLine}</argLine>
<excludes>
<exclude>${failsafe.test.excludes}</exclude>
<exclude>${cluster.test.excludes}</exclude>
diff --git a/pom.xml b/pom.xml
index b087991..09cccb7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -408,6 +408,15 @@
<propertyName>coverageArgLine</propertyName>
</configuration>
</execution>
+ <execution>
+ <id>default-prepare-agent-integration</id>
+ <goals>
+ <goal>prepare-agent-integration</goal>
+ </goals>
+ <configuration>
+ <propertyName>coverageArgLine</propertyName>
+ </configuration>
+ </execution>
</executions>
</plugin>
</plugins>