aboutsummaryrefslogtreecommitdiff
path: root/docs/building-spark.md
diff options
context:
space:
mode:
authorscwf <wangfei1@huawei.com>2014-10-05 21:36:20 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-10-05 21:36:28 -0700
commitc9ae79fba25cd49ca70ca398bc75434202d26a97 (patch)
tree1dfa00fe7afbbc61226dc1308de9a03396cfe38f /docs/building-spark.md
parentfd7b15539669b14996a51610d6724ca0811f9d65 (diff)
downloadspark-c9ae79fba25cd49ca70ca398bc75434202d26a97.tar.gz
spark-c9ae79fba25cd49ca70ca398bc75434202d26a97.tar.bz2
spark-c9ae79fba25cd49ca70ca398bc75434202d26a97.zip
[SPARK-3765][Doc] Add test information to sbt build docs
Add testing with sbt to doc ```building-spark.md``` Author: scwf <wangfei1@huawei.com> Closes #2629 from scwf/sbt-doc and squashes the following commits: fd9cf29 [scwf] add testing with sbt to docs
Diffstat (limited to 'docs/building-spark.md')
-rw-r--r--docs/building-spark.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/building-spark.md b/docs/building-spark.md
index 901c157162..b2940ee402 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