Skip to content

Commit c9ae79f

Browse files
scwfpwendell
authored andcommitted
[SPARK-3765][Doc] Add test information to sbt build docs
Add testing with sbt to doc ```building-spark.md``` Author: scwf <[email protected]> Closes apache#2629 from scwf/sbt-doc and squashes the following commits: fd9cf29 [scwf] add testing with sbt to docs
1 parent fd7b155 commit c9ae79f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/building-spark.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,21 @@ can be set to control the SBT build. For example:
171171

172172
sbt/sbt -Pyarn -Phadoop-2.3 assembly
173173

174+
# Testing with SBT
175+
176+
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:
177+
178+
sbt/sbt -Pyarn -Phadoop-2.3 -Phive assembly
179+
sbt/sbt -Pyarn -Phadoop-2.3 -Phive test
180+
181+
To run only a specific test suite as follows:
182+
183+
sbt/sbt -Pyarn -Phadoop-2.3 -Phive "test-only org.apache.spark.repl.ReplSuite"
184+
185+
To run test suites of a specific sub project as follows:
186+
187+
sbt/sbt -Pyarn -Phadoop-2.3 -Phive core/test
188+
174189
# Speeding up Compilation with Zinc
175190

176191
[Zinc](https://github.com/typesafehub/zinc) is a long-running server version of SBT's incremental

0 commit comments

Comments
 (0)