GitLab Mirror pushed to branch trunk at cms-community / hippo-jackrabbit

Commits:
134d6c98 by Julian Reschke at 2017-01-20T15:04:15+00:00
JCR-4101: add code coverage profile (jacoco)

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1779632 
13f79535-47bb-0310-9956-ffa450edef68

- - - - -


1 changed file:

- jackrabbit-parent/pom.xml


Changes:

=====================================
jackrabbit-parent/pom.xml
=====================================
--- a/jackrabbit-parent/pom.xml
+++ b/jackrabbit-parent/pom.xml
@@ -44,7 +44,7 @@
 
   <properties>
     <test.opts.memory>-Xmx256m</test.opts.memory>
-    <test.opts>${test.opts.memory} -enableassertions</test.opts>
+    <test.opts>${test.opts.coverage} ${test.opts.memory} 
-enableassertions</test.opts>
     <jetty.version>6.1.22</jetty.version>
     <tika.version>1.7</tika.version>
     
<project.reporting.outputEncoding>${project.build.sourceEncoding}</project.reporting.outputEncoding>
@@ -60,6 +60,8 @@
     <logback.version>1.0.12</logback.version>
     <java.version>1.7</java.version>
     <java.version.signature>java17</java.version.signature>
+    <skip.coverage>true</skip.coverage>
+    <jacoco.version>0.7.8</jacoco.version>
   </properties>
 
   <url>http://jackrabbit.apache.org/</url>
@@ -140,6 +142,12 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>coverage</id>
+      <properties>
+        <skip.coverage>false</skip.coverage>
+      </properties>
+    </profile>
   </profiles>
 
   <build>
@@ -214,6 +222,54 @@
           </excludes>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.jacoco</groupId>
+        <artifactId>jacoco-maven-plugin</artifactId>
+        <version>${jacoco.version}</version>
+          <executions>
+            <execution>
+              <id>default-prepare-agent</id>
+              <goals>
+                <goal>prepare-agent</goal>
+              </goals>
+              <configuration>
+                <skip>${skip.coverage}</skip>
+                <propertyName>test.opts.coverage</propertyName>
+              </configuration>
+            </execution>
+            <execution>
+              <id>default-prepare-agent-integration</id>
+              <goals>
+                <goal>prepare-agent-integration</goal>
+              </goals>
+            </execution>
+            <execution>
+              <id>default-report</id>
+              <goals>
+                <goal>report</goal>
+              </goals>
+              <configuration>
+                <skip>${skip.coverage}</skip>
+              </configuration>
+            </execution>
+            <execution>
+              <id>default-report-integration</id>
+              <goals>
+                <goal>report-integration</goal>
+              </goals>
+            </execution>
+            <execution>
+              <id>default-check</id>
+              <goals>
+                <goal>check</goal>
+              </goals>
+              <configuration>
+                <rules>
+                </rules>
+              </configuration>
+           </execution>
+         </executions>
+      </plugin>
     </plugins>
     <pluginManagement>
       <!-- JCRSITE-9: Fix versions of key Maven plugins      -->



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-jackrabbit/commit/134d6c989e7f1ba437441e9d7a9769df3773bf7b
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to