Skip to content

Conversation

@srowen
Copy link
Member

@srowen srowen commented Jan 11, 2015

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.

…ests=... syntax for running one test to work
@SparkQA
Copy link

SparkQA commented Jan 11, 2015

Test build #25380 has started for PR 3993 at commit 83106d7.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 11, 2015

Test build #25380 has finished for PR 3993 at commit 83106d7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25380/
Test PASSed.

@JoshRosen
Copy link
Contributor

@pwendell @mateiz Could one of you grant @srowen edit permissions on the Spark CWiki? I'd do it myself but I don't think I have admin privileges (could you grant them to me?).

@sryza
Copy link
Contributor

sryza commented Jan 12, 2015

@srowen do you know whether the sbt test instructions are still correct?

@sryza
Copy link
Contributor

sryza commented Jan 12, 2015

made the wiki edit for Maven

@mateiz
Copy link
Contributor

mateiz commented Jan 12, 2015

Gave Sean edit permissions and made you admin. FYI the admin panel is really hard to find, it's under Browse -> Space Admin.

@srowen
Copy link
Member Author

srowen commented Jan 12, 2015

@sryza SBT won't run the Java tests, so that is unchanged. Wiki edit looks good to me. We do need this PR merged too or else excluding all Java tests will cause Surefire to barf.

@JoshRosen
Copy link
Contributor

I think that SBT actually can run the Java tests, since I've successfully run only JavaAPISuite through SBT.

This looks good to me, so I'm going to merge this into master (1.3.0). Thanks!

@asfgit asfgit closed this in 13e610b Jan 12, 2015
@srowen srowen deleted the SPARK-4159 branch January 12, 2015 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants