Skip to content

Conversation

@chadrik
Copy link
Contributor

@chadrik chadrik commented Sep 4, 2019

I don't know how to specify individual tests using gradle, and as a python developer, it's way too opaque for me to figure out on my own.

The developer wiki suggest calling the tests directly:

python setup.py nosetests --tests <module>:<test class>.<test method>

But this defeats the purpose of using tox, which is there to help users manage the myriad virtual envs required to run the different tests. Luckily, there is an easier way.

With this PR you can now do:

tox -e py27 -- --tests apache_beam.testing.synthetic_pipeline_test

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status --- --- Build Status
XLang --- --- --- Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@chadrik
Copy link
Contributor Author

chadrik commented Sep 4, 2019

R: @robertwb
R: @mxm
R: @aaltay

Copy link
Contributor

@robertwb robertwb left a comment

Choose a reason for hiding this comment

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

Thanks, this will be useful.

@chadrik
Copy link
Contributor Author

chadrik commented Sep 4, 2019

Yep, someone with committer credentials should update the wiki once this goes in.

@robertwb robertwb merged commit 1f3415e into apache:master Sep 4, 2019
@chadrik
Copy link
Contributor Author

chadrik commented Sep 4, 2019

Thanks @robertwb

Here's the link to the wiki article I was referring to https://cwiki.apache.org/confluence/display/BEAM/Python+Tips

@mxm
Copy link
Contributor

mxm commented Sep 4, 2019

Awesome, thanks!

@aaltay
Copy link
Member

aaltay commented Sep 4, 2019

@chadrik chadrik deleted the tox_posargs branch September 13, 2019 19:11
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.

4 participants