From 7af49fc56d2d68af2c497eabcaa2d073e71fea39 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Wed, 7 Dec 2011 21:48:30 +0000 Subject: [PATCH] HBASE-4712 Document rules for writing tests; Addendum via Jesse Yates git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1211652 13f79535-47bb-0310-9956-ffa450edef68 --- src/docbkx/developer.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/docbkx/developer.xml b/src/docbkx/developer.xml index 47fd751f6e8..440e97348b7 100644 --- a/src/docbkx/developer.xml +++ b/src/docbkx/developer.xml @@ -222,7 +222,7 @@ unit test characterizations.
Default: small and medium category tests -Running mvn run will execute all small tests in a single JVM and medium tests in a separate JVM for +Running mvn test will execute all small tests in a single JVM and medium tests in a separate JVM for each test instance. Medium tests are NOT executed if there is an error in a small test. Large tests are NOT executed. There is one report for small tests, and one report for medium tests if they are executed. @@ -241,12 +241,12 @@ There is one report for small tests, and one report for medium and large tests i
Running a single test or all tests in a package -To run an individual test, MyTest, do +To run an individual test, e.g. MyTest, do mvn test -P localTests -Dtest=MyTest You can also -pass multiple individual tests comma-delimited: e.g. +pass multiple, individual tests as a comma-delimited list: mvn test -P localTests -Dtest=MyTest1,MyTest2,MyTest3 -You can also pass a package and all tests under the package will be run by doing as follows: -mvn test -P localTests -Dtest=org.apache.hadoop.hbase.client.*. +You can also pass a package, which will run all tests under the package: +mvn test -P localTests -Dtest=org.apache.hadoop.hbase.client.* @@ -358,7 +358,7 @@ run all the phases up to and including the verify phase via the maven failsafe plugin, running all the above mentioned HBase unit tests as well as tests that are in the HBase integration test group. If you just want to run the integration tests, you need to run two commands. First: - mvn failsafe:integration-test. + mvn failsafe:integration-test This actually runs ALL the integration tests. This command will always output BUILD SUCCESS even if there are test failures.