You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by je...@apache.org on 2017/02/07 20:36:33 UTC
hbase git commit: HBASE-17574 Clean up how to run tests under
hbase-spark module (Yi Liang)
Repository: hbase
Updated Branches:
refs/heads/master d0498d979 -> 8088aa373
HBASE-17574 Clean up how to run tests under hbase-spark module (Yi Liang)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/8088aa37
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8088aa37
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8088aa37
Branch: refs/heads/master
Commit: 8088aa3733539a09cb258f98cb12c1d96ea2463a
Parents: d0498d9
Author: Jerry He <je...@apache.org>
Authored: Tue Feb 7 12:31:38 2017 -0800
Committer: Jerry He <je...@apache.org>
Committed: Tue Feb 7 12:36:19 2017 -0800
----------------------------------------------------------------------
hbase-spark/README.txt | 13 +++++++++++++
hbase-spark/pom.xml | 13 +------------
2 files changed, 14 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/8088aa37/hbase-spark/README.txt
----------------------------------------------------------------------
diff --git a/hbase-spark/README.txt b/hbase-spark/README.txt
index fe2c09d..7c658f9 100644
--- a/hbase-spark/README.txt
+++ b/hbase-spark/README.txt
@@ -17,3 +17,16 @@ or
After you've done the above, check it and then check in changes (or post a patch
on a JIRA with your definition file changes and the generated files). Be careful
to notice new files and files removed and do appropriate git rm/adds.
+
+Running Tests under hbase-spark module
+Tests are run via ScalaTest Maven Plugin and Surefire Maven Plugin
+The following are examples to run the tests:
+
+Run tests under root dir or hbase-spark dir
+ $ mvn test //run all small and medium java tests, and all scala tests
+ $ mvn test -PskipSparkTests //skip all scale and java test in hbase-spark
+ $ mvn test -P runAllTests //run all tests, including scala and all java test including the large test
+
+Run specified test case
+ $ mvn test -Dtest=TestJavaHBaseContext -DwildcardSuites=None //java unit test
+ $ mvn test -Dtest=None -DwildcardSuites=org.apache.hadoop.hbase.spark.BulkLoadSuite //scala unit test
http://git-wip-us.apache.org/repos/asf/hbase/blob/8088aa37/hbase-spark/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-spark/pom.xml b/hbase-spark/pom.xml
index 8417d2f..a7997f1 100644
--- a/hbase-spark/pom.xml
+++ b/hbase-spark/pom.xml
@@ -40,7 +40,6 @@
<spark.version>1.6.0</spark.version>
<scala.version>2.10.4</scala.version>
<scala.binary.version>2.10</scala.binary.version>
- <surefire.skipSecondPart>true</surefire.skipSecondPart>
<top.dir>${project.basedir}/..</top.dir>
<avro.version>1.7.6</avro.version>
<avro.mapred.classifier></avro.mapred.classifier>
@@ -611,17 +610,6 @@
<goal>test</goal>
</goals>
<configuration>
- <skipTests>true</skipTests>
- </configuration>
- </execution>
- <execution>
- <id>integration-test</id>
- <phase>integration-test</phase>
- <goals>
- <goal>test</goal>
- </goals>
- <configuration>
- <tagsToExclude>Integration-Test</tagsToExclude>
<argLine>
-Xmx1536m -XX:ReservedCodeCacheSize=512m
</argLine>
@@ -696,6 +684,7 @@
<properties>
<surefire.skipFirstPart>true</surefire.skipFirstPart>
<surefire.skipSecondPart>true</surefire.skipSecondPart>
+ <skipTests>true</skipTests>
</properties>
</profile>
<profile>