hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject git commit: HBASE-8808 Use Jacoco to generate Unit Test coverage reports (Manukranth)
Date Sat, 04 Oct 2014 04:52:00 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 202bc2934 -> 3533820ef


HBASE-8808 Use Jacoco to generate Unit Test coverage reports (Manukranth)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/3533820e
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3533820e
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3533820e

Branch: refs/heads/master
Commit: 3533820efb2d0ad80b4bf0ee05c25f4ff2b59436
Parents: 202bc29
Author: stack <stack@apache.org>
Authored: Fri Oct 3 21:51:49 2014 -0700
Committer: stack <stack@apache.org>
Committed: Fri Oct 3 21:51:49 2014 -0700

----------------------------------------------------------------------
 pom.xml | 35 +++++++++++++++++++++++++++++++++--
 1 file changed, 33 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/3533820e/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 079033c..2d43c95 100644
--- a/pom.xml
+++ b/pom.xml
@@ -471,8 +471,11 @@
             <testFailureIgnore>${surefire.testFailureIgnore}</testFailureIgnore>
             <forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSeconds>
             <!--Allocate some direct memory for direct memory tests-->
-            <argLine>${hbase-surefire.argLine}</argLine>
+            <argLine>${hbase-surefire.argLine} ${argLine}</argLine>
             <redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
+	    <systemPropertyVariables>
+              <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
+            </systemPropertyVariables>
           </configuration>
           <executions>
             <execution>
@@ -854,6 +857,32 @@
           <templateFile>${basedir}/src/main/site/site.vm</templateFile>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.jacoco</groupId>
+        <artifactId>jacoco-maven-plugin</artifactId>
+        <version>${jacoco.version}</version>
+        <executions>
+          <execution>
+            <id>prepare-agent</id>
+            <goals>
+              <goal>prepare-agent</goal>
+            </goals>
+          </execution>
+          <execution>
+            <id>report</id>
+            <phase>prepare-package</phase>
+            <goals>
+              <goal>report</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <skip>${hbase.skip-jacoco}</skip>
+          <excludes>
+            <exclude>**/generated/**/*.class</exclude>
+          </excludes>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
   <properties>
@@ -941,6 +970,8 @@
       -Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true
       "-Djava.library.path=${hadoop.library.path};${java.library.path}"
     </hbase-surefire.cygwin-argline>
+    <hbase.skip-jacoco>true</hbase.skip-jacoco>
+    <jacoco.version>0.6.2.201302030002</jacoco.version>
   </properties>
   <!-- Sorted by groups of dependencies then groupId and artifactId -->
   <dependencyManagement>
@@ -1448,7 +1479,7 @@
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-surefire-plugin</artifactId>
               <configuration>
-                <argLine>${hbase-surefire.cygwin-argline}</argLine>
+                <argLine>${hbase-surefire.cygwin-argline} ${argLine}</argLine>
                 <systemProperties>
                   <property>
                     <name>java.net.preferIPv4Stack</name>


Mime
View raw message