aboutsummaryrefslogtreecommitdiff
path: root/docs/building-with-maven.md
diff options
context:
space:
mode:
authorStephen Boesch <javadba@gmail.com>2014-08-03 10:19:04 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-08-03 10:19:57 -0700
commitf8cd143b6b1b4d8aac87c229e5af263b0319b3ea (patch)
treec518c9ae19a4e857c7199527efdd91bc1afc56b7 /docs/building-with-maven.md
parent3dc55fdf450b4237f7c592fce56d1467fd206366 (diff)
downloadspark-f8cd143b6b1b4d8aac87c229e5af263b0319b3ea.tar.gz
spark-f8cd143b6b1b4d8aac87c229e5af263b0319b3ea.tar.bz2
spark-f8cd143b6b1b4d8aac87c229e5af263b0319b3ea.zip
SPARK-2712 - Add a small note to maven doc that mvn package must happen ...
Per request by Reynold adding small note about proper sequencing of build then test. Author: Stephen Boesch <javadba@gmail.com> Closes #1615 from javadba/docs and squashes the following commits: 6c3183e [Stephen Boesch] Moved updated testing blurb per PWendell 5764757 [Stephen Boesch] SPARK-2712 - Add a small note to maven doc that mvn package must happen before test
Diffstat (limited to 'docs/building-with-maven.md')
-rw-r--r--docs/building-with-maven.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/building-with-maven.md b/docs/building-with-maven.md
index 55a9e37dfe..672d0ef114 100644
--- a/docs/building-with-maven.md
+++ b/docs/building-with-maven.md
@@ -98,7 +98,12 @@ mvn -Pyarn-alpha -Phadoop-2.3 -Dhadoop.version=2.3.0 -Dyarn.version=0.23.7 -Dski
# Spark Tests in Maven
-Tests are run by default via the [ScalaTest Maven plugin](http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin). Some of the require Spark to be packaged first, so always run `mvn package` with `-DskipTests` the first time. You can then run the tests with `mvn -Dhadoop.version=... test`.
+Tests are run by default via the [ScalaTest Maven plugin](http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin).
+
+Some of the tests require Spark to be packaged first, so always run `mvn package` with `-DskipTests` the first time. The following is an example of a correct (build, test) sequence:
+
+ mvn -Pyarn -Phadoop-2.3 -DskipTests -Phive clean package
+ mvn -Pyarn -Phadoop-2.3 -Phive test
The ScalaTest plugin also supports running only a specific test suite as follows: