summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2020-01-14 14:11:20 -0500
committerPamela Dragosh <pdragosh@research.att.com>2020-01-14 14:11:25 -0500
commitc1935dba4855c4e2f60ef628eb0cdb663fde64dd (patch)
treee909afa0e6e2bf7c58750231fbdc384f764c7789
parent8078113d08caa11fa4fa37383636d9243b2e3b2f (diff)
Override oparent sonar
We don't have any IT tests, so let's skip them. This may have a trivial bump in speed. Use the same datafile, and make sure the results are being appended to support multi-module. This will result in all the repos removing this configuration as it only needs to be set here in policy/parent. Cleans up things a bit. Issue-ID: POLICY-2321 Change-Id: I999cb3bb8a7a764ffc7459fc9e0b9b8377dbecb3 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
-rw-r--r--integration/pom.xml48
1 files changed, 48 insertions, 0 deletions
diff --git a/integration/pom.xml b/integration/pom.xml
index 40903723..c840fac7 100644
--- a/integration/pom.xml
+++ b/integration/pom.xml
@@ -47,6 +47,7 @@
<version.javax.bind>2.3.1</version.javax.bind>
<version.javax.json>1.1.4</version.javax.json>
<version.json>20190722</version.json>
+ <jacoco.dataFile>${project.basedir}/../target/code-coverage/jacoco-ut.exec</jacoco.dataFile>
</properties>
<distributionManagement>
@@ -625,6 +626,53 @@
<target>${java.version}</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>pre-unit-test</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ <configuration>
+ <destFile>${jacoco.dataFile}</destFile>
+ <append>true</append>
+ </configuration>
+ </execution>
+ <execution>
+ <id>post-unit-test</id>
+ <phase>test</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ <configuration>
+ <dataFile>${jacoco.dataFile}</dataFile>
+ </configuration>
+ </execution>
+ <execution>
+ <id>pre-integration-test</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </execution>
+ <execution>
+ <id>post-integration-test</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </execution>
+
+ </executions>
+ </plugin>
</plugins>
</build>