aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorSean Owen <sowen@cloudera.com>2015-01-12 11:00:56 -0800
committerJosh Rosen <joshrosen@databricks.com>2015-01-12 11:01:00 -0800
commit13e610b88eb83b11785737ab1d99927f676f81c6 (patch)
tree0aa371545f1e8a21e549d494cb2d0f92a5d96dd4 /pom.xml
parentef9224e08010420b570c21a0b9208d22792a24fe (diff)
downloadspark-13e610b88eb83b11785737ab1d99927f676f81c6.tar.gz
spark-13e610b88eb83b11785737ab1d99927f676f81c6.tar.bz2
spark-13e610b88eb83b11785737ab1d99927f676f81c6.zip
SPARK-4159 [BUILD] Addendum: improve running of single test after enabling Java tests
https://issues.apache.org/jira/browse/SPARK-4159 was resolved but as Sandy points out, the guidance in https://cwiki.apache.org/confluence/display/SPARK/Useful+Developer+Tools under "Running Individual Tests" no longer quite works, not optimally. This minor change is not really the important change, which is an update to the wiki text. The correct way to run one Scala test suite in Maven is now: ``` mvn test -DwildcardSuites=org.apache.spark.io.CompressionCodecSuite -Dtests=none ``` The correct way to run one Java test is ``` mvn test -DwildcardSuites=none -Dtests=org.apache.spark.streaming.JavaAPISuite ``` Basically, you have to set two properties in order to suppress all of one type of test (with a non-existent test name like 'none') and all but one test of the other type. The change in the PR just prevents Surefire from barfing when it finds no "none" test. Author: Sean Owen <sowen@cloudera.com> Closes #3993 from srowen/SPARK-4159 and squashes the following commits: 83106d7 [Sean Owen] Default failIfNoTests to false to enable the -DwildcardSuites=... -Dtests=... syntax for running one test to work
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index aadcdfd108..0403c008be 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1130,6 +1130,7 @@
<spark.executor.extraClassPath>${test_classpath}</spark.executor.extraClassPath>
<spark.driver.allowMultipleContexts>true</spark.driver.allowMultipleContexts>
</systemProperties>
+ <failIfNoTests>false</failIfNoTests>
</configuration>
</plugin>
<!-- Scalatest runs all Scala tests -->