-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding flexibility to how run_unit_tests determines what to run. #2475
Conversation
- (cd speech && tox -e py34) | ||
- python2.7 scripts/run_unit_tests.py | ||
- python3.4 scripts/run_unit_tests.py | ||
- python3.5 scripts/run_unit_tests.py |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
ffa44ab
to
3ddcbf6
Compare
- Upgrading the `get_tox_env()` helper to support the `TOXENV` env. var. and the current system Python - Ditching tox on Travis for py27, py34 and isolated-cover, this is because those tox environments just farm out the work to tox environments for each subpackage, so it isn't worth waiting for the extra tox env. setup time - Changing back from --tox-env-dir to --tox-env flag in run_unit_tests.py script - Adding py27,py34,py35 back to the `tox` env. list - Letting tox -e py27, etc. allow the current Python to determine their tox env. value
Also - Adding instruction to `CONTRIBUTING` about how to run a subset of tests for packages of your choosing - Moving the "Adding Features" section to the top of the `CONTRIBUTING` doc - Making tiny edits to `CONTRIBUTING` doc, e.g. using a "repo" hyperlink for the repository and updating the link to the `tox` docs
3ddcbf6
to
7e4f576
Compare
@tseaver @daspecster PTAL |
Could we rebase this since #2473 was merged? |
It's been rebased 😉 |
get_tox_env()
helper to support theTOXENV
env. var. and the current system Pythontox
on Travis forpy27
,py34
andisolated-cover
, this is because thosetox
environments just farm out the work totox
environments for each sub-package, so it isn't worth waiting for the extratox
env. setup time--tox-env-dir
to--tox-env
flag inrun_unit_tests.py
script (it could always go back but isn't needed. Also could use theVIRTUAL_ENV
env. var. set by theactivate
script from thevirtualenv
tool)py27,py34,py35
back to thetox
env. listtox -e py27
, etc. allow the current Python to determine theirtox
env. valuerun_unit_tests
from the command lineCONTRIBUTING
doc changes (see 2nd commit)NOTE: Has #2473 as diffbase.