You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by pw...@apache.org on 2014/10/06 06:36:58 UTC

git commit: [SPARK-3765][Doc] Add test information to sbt build docs

Repository: spark
Updated Branches:
  refs/heads/master fd7b15539 -> c9ae79fba


[SPARK-3765][Doc] Add test information to sbt build docs

Add testing with sbt to doc ```building-spark.md```

Author: scwf <wa...@huawei.com>

Closes #2629 from scwf/sbt-doc and squashes the following commits:

fd9cf29 [scwf] add testing with sbt to docs


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

Branch: refs/heads/master
Commit: c9ae79fba25cd49ca70ca398bc75434202d26a97
Parents: fd7b155
Author: scwf <wa...@huawei.com>
Authored: Sun Oct 5 21:36:20 2014 -0700
Committer: Patrick Wendell <pw...@gmail.com>
Committed: Sun Oct 5 21:36:28 2014 -0700

----------------------------------------------------------------------
 docs/building-spark.md | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/c9ae79fb/docs/building-spark.md
----------------------------------------------------------------------
diff --git a/docs/building-spark.md b/docs/building-spark.md
index 901c157..b2940ee 100644
--- a/docs/building-spark.md
+++ b/docs/building-spark.md
@@ -171,6 +171,21 @@ can be set to control the SBT build. For example:
 
     sbt/sbt -Pyarn -Phadoop-2.3 assembly
 
+# Testing with SBT
+
+Some of the tests require Spark to be packaged first, so always run `sbt/sbt assembly` the first time.  The following is an example of a correct (build, test) sequence:
+
+    sbt/sbt -Pyarn -Phadoop-2.3 -Phive assembly
+    sbt/sbt -Pyarn -Phadoop-2.3 -Phive test
+
+To run only a specific test suite as follows:
+
+    sbt/sbt -Pyarn -Phadoop-2.3 -Phive "test-only org.apache.spark.repl.ReplSuite"
+
+To run test suites of a specific sub project as follows:
+
+    sbt/sbt -Pyarn -Phadoop-2.3 -Phive core/test
+
 # Speeding up Compilation with Zinc
 
 [Zinc](https://github.com/typesafehub/zinc) is a long-running server version of SBT's incremental


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org