Repository: hbase
Updated Branches:
  refs/heads/0.98 2f45c7c8e -> 365537a59


HBASE-12709 [mvn] Add unit test excludes command line flag to the build


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

Branch: refs/heads/0.98
Commit: 365537a59d8482bfe49a2e77b4468e412af3e500
Parents: 2f45c7c
Author: Jonathan M Hsieh <[email protected]>
Authored: Thu Dec 18 06:42:21 2014 -0800
Committer: Jonathan M Hsieh <[email protected]>
Committed: Mon Dec 22 17:13:26 2014 -0800

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/365537a5/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index d313ca3..ad0d02c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -502,6 +502,13 @@
             <systemPropertyVariables>
               <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
             </systemPropertyVariables>
+
+            <excludes>
+             <!-- users can add -D option to skip particular test classes
+                  ex: mvn test 
-Dtest.exclude.pattern=**/TestFoo.java,**/TestBar.java
+             -->
+             <exclude>${test.exclude.pattern}</exclude>
+           </excludes>
           </configuration>
           <executions>
             <execution>
@@ -1039,6 +1046,7 @@
     <surefire.testFailureIgnore>false</surefire.testFailureIgnore>
     <test.output.tofile>true</test.output.tofile>
     <surefire.timeout>900</surefire.timeout>
+    <test.exclude.pattern></test.exclude.pattern>
     <hbase-surefire.argLine>-enableassertions -XX:MaxDirectMemorySize=1G 
-Xmx1900m
       -XX:MaxPermSize=256m -Djava.security.egd=file:/dev/./urandom 
-Djava.net.preferIPv4Stack=true
       -Djava.awt.headless=true

Reply via email to