GitHub user srowen opened a pull request:
https://github.com/apache/spark/pull/3993
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.
I'd make the wiki edit but I can't myself.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/srowen/spark SPARK-4159
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/3993.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3993
----
commit 83106d757bb59fcfb144f9d8d2a8fcdeb50c2760
Author: Sean Owen <[email protected]>
Date: 2015-01-11T21:12:10Z
Default failIfNoTests to false to enable the -DwildcardSuites=...
-Dtests=... syntax for running one test to work
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]