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
This commit is contained in:
Sean Owen 2015-01-12 11:00:56 -08:00 committed by Josh Rosen
parent ef9224e080
commit 13e610b88e

View file

@ -1130,6 +1130,7 @@
<spark.executor.extraClassPath>${test_classpath}</spark.executor.extraClassPath> <spark.executor.extraClassPath>${test_classpath}</spark.executor.extraClassPath>
<spark.driver.allowMultipleContexts>true</spark.driver.allowMultipleContexts> <spark.driver.allowMultipleContexts>true</spark.driver.allowMultipleContexts>
</systemProperties> </systemProperties>
<failIfNoTests>false</failIfNoTests>
</configuration> </configuration>
</plugin> </plugin>
<!-- Scalatest runs all Scala tests --> <!-- Scalatest runs all Scala tests -->