Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Use "extraScalaTestArgs" to pass extra options to scalatest. #52

Conversation

lins05
Copy link

@lins05 lins05 commented Jan 26, 2017

What changes were proposed in this pull request?

Because the "argLine" option of scalatest is set in pom.xml and we can't
overwrite it from the command line.

Ref #37

How was this patch tested?

When I use this option to set spark.docker.test.persistMinikube to true, the minikube vm wasn't deleted after the integration tests, which is expected.

build/mvn -Pkubernetes -Pkubernetes-integration-tests \
          -pl resource-managers/kubernetes/integration-tests -am \
          -DwildcardSuites=org.apache.spark.deploy.kubernetes.integrationtest.KubernetesSuite \
          -DextraScalaTestArgs=-Dspark.docker.test.persistMinikube=true \
          integration-test

Because the "argLine" option of scalatest is set in pom.xml and we can't
overwrite it from the command line.

Ref apache-spark-on-k8s#37
Copy link

@ash211 ash211 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems right, though I'm not especially familiar with Maven.

@ssuchter
Copy link
Member

This is a fine way to do it, but I wonder if a name like "extraScalaTestArgs" would be a clearer name.

@lins05
Copy link
Author

lins05 commented Jan 26, 2017

@ssuchter Good suggestion. I've updated the name.

@lins05 lins05 changed the title Use "extraTestArgLine" to pass extra options to scalatest. Use "extraScalaTestArgs" to pass extra options to scalatest. Jan 26, 2017
@lins05 lins05 force-pushed the support-extra-arg-line branch from 516066f to 8d24bc2 Compare January 26, 2017 07:34
@lins05 lins05 force-pushed the support-extra-arg-line branch from 8d24bc2 to 8a475ba Compare January 26, 2017 07:35
@ssuchter
Copy link
Member

+1 to merge.

@ash211 ash211 merged commit 4df2fae into apache-spark-on-k8s:k8s-support-alternate-incremental Jan 26, 2017
@lins05 lins05 deleted the support-extra-arg-line branch January 28, 2017 02:20
ash211 pushed a commit that referenced this pull request Feb 8, 2017
* Use "extraTestArgLine" to pass extra options to scalatest.

Because the "argLine" option of scalatest is set in pom.xml and we can't
overwrite it from the command line.

Ref #37

* Added a default value for extraTestArgLine

* Use a better name.

* Added a tip for this in the dev docs.
ash211 pushed a commit that referenced this pull request Mar 8, 2017
* Use "extraTestArgLine" to pass extra options to scalatest.

Because the "argLine" option of scalatest is set in pom.xml and we can't
overwrite it from the command line.

Ref #37

* Added a default value for extraTestArgLine

* Use a better name.

* Added a tip for this in the dev docs.
foxish pushed a commit that referenced this pull request Jul 24, 2017
* Use "extraTestArgLine" to pass extra options to scalatest.

Because the "argLine" option of scalatest is set in pom.xml and we can't
overwrite it from the command line.

Ref #37

* Added a default value for extraTestArgLine

* Use a better name.

* Added a tip for this in the dev docs.
ifilonenko pushed a commit to ifilonenko/spark that referenced this pull request Feb 25, 2019
ifilonenko pushed a commit to ifilonenko/spark that referenced this pull request Feb 25, 2019
…spark-on-k8s#52)

* Use "extraTestArgLine" to pass extra options to scalatest.

Because the "argLine" option of scalatest is set in pom.xml and we can't
overwrite it from the command line.

Ref apache-spark-on-k8s#37

* Added a default value for extraTestArgLine

* Use a better name.

* Added a tip for this in the dev docs.
puneetloya pushed a commit to puneetloya/spark that referenced this pull request Mar 11, 2019
…spark-on-k8s#52)

* Use "extraTestArgLine" to pass extra options to scalatest.

Because the "argLine" option of scalatest is set in pom.xml and we can't
overwrite it from the command line.

Ref apache-spark-on-k8s#37

* Added a default value for extraTestArgLine

* Use a better name.

* Added a tip for this in the dev docs.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants