knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kris...@apache.org
Subject knox git commit: KNOX-1604 - Enable jacoco for test coverage
Date Thu, 15 Nov 2018 19:34:25 GMT
Repository: knox
Updated Branches:
  refs/heads/master 7c22f02ad -> 0f89a951e


KNOX-1604 - Enable jacoco for test coverage

Signed-off-by: Kevin Risden <krisden@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/0f89a951
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/0f89a951
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/0f89a951

Branch: refs/heads/master
Commit: 0f89a951ef924e4d19d6b77cd5cada7adabd71eb
Parents: 7c22f02
Author: Kevin Risden <krisden@apache.org>
Authored: Sat Nov 10 11:34:14 2018 -0500
Committer: Kevin Risden <krisden@apache.org>
Committed: Thu Nov 15 14:34:01 2018 -0500

----------------------------------------------------------------------
 pom.xml | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/0f89a951/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 342d834..3881ac2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -170,6 +170,7 @@
         <httpclient.version>4.5.6</httpclient.version>
         <httpcore.version>4.4.10</httpcore.version>
         <jackson.version>2.9.7</jackson.version>
+        <jacoco-maven-plugin.version>0.8.2</jacoco-maven-plugin.version>
         <jansi.version>1.17.1</jansi.version>
         <javax.annotation-api.version>1.2</javax.annotation-api.version>
         <javax.json.version>1.1.3</javax.json.version>
@@ -561,6 +562,57 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.jacoco</groupId>
+                <artifactId>jacoco-maven-plugin</artifactId>
+                <version>${jacoco-maven-plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>default-prepare-agent</id>
+                        <goals>
+                            <goal>prepare-agent</goal>
+                        </goals>
+                    </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>
+                    </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>
+                                <rule>
+                                    <element>BUNDLE</element>
+                                    <limits>
+                                        <limit>
+                                            <counter>COMPLEXITY</counter>
+                                            <value>COVEREDRATIO</value>
+                                            <minimum>0.00</minimum>
+                                        </limit>
+                                    </limits>
+                                </rule>
+                            </rules>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 
@@ -592,6 +644,18 @@
                     </reportSet>
                 </reportSets>
             </plugin>
+            <plugin>
+                <groupId>org.jacoco</groupId>
+                <artifactId>jacoco-maven-plugin</artifactId>
+                <reportSets>
+                    <reportSet>
+                        <reports>
+                            <!-- select non-aggregate reports -->
+                            <report>report</report>
+                        </reports>
+                    </reportSet>
+                </reportSets>
+            </plugin>
         </plugins>
     </reporting>
 


Mime
View raw message