HBASE-17574 Clean up how to run tests under hbase-spark module (Yi Liang)

This commit is contained in:
Jerry He 2017-02-07 12:31:38 -08:00
parent d0498d979c
commit 8088aa3733
2 changed files with 14 additions and 12 deletions

View File

@ -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

View File

@ -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>