-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Adding flexibility to how run_unit_tests determines what to run. #2475
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
Conversation
.travis.yml
Outdated
| - (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 theTOXENVenv. var. and the current system Pythontoxon Travis forpy27,py34andisolated-cover, this is because thosetoxenvironments just farm out the work totoxenvironments for each sub-package, so it isn't worth waiting for the extratoxenv. setup time--tox-env-dirto--tox-envflag inrun_unit_tests.pyscript (it could always go back but isn't needed. Also could use theVIRTUAL_ENVenv. var. set by theactivatescript from thevirtualenvtool)py27,py34,py35back to thetoxenv. listtox -e py27, etc. allow the current Python to determine theirtoxenv. valuerun_unit_testsfrom the command lineCONTRIBUTINGdoc changes (see 2nd commit)NOTE: Has #2473 as diffbase.