diff options
| author | Aurélien Bompard | 2016-04-26 11:00:41 +0200 |
|---|---|---|
| committer | Aurélien Bompard | 2016-04-30 19:00:22 +0200 |
| commit | 854610463617718210902ed0a5117382f427b16e (patch) | |
| tree | 0dea23927d0ff2e8084425af76613bf8ac7ddbfd | |
| parent | 1b46e6b6262109d4befbb5a1c534ffde25d702fb (diff) | |
| download | mailman-854610463617718210902ed0a5117382f427b16e.tar.gz mailman-854610463617718210902ed0a5117382f427b16e.tar.zst mailman-854610463617718210902ed0a5117382f427b16e.zip | |
Make the tox.ini file more flexible
This commit improves two aspects of the tox.ini file:
* Take arguments into account to only run a subset of the tests, eg:
`tox -e py34 mailman.model.tests.test_subscriptions`
* Make it possible to run pyflakes with the local Python 3 interpreter,
whichever its version.
| -rw-r--r-- | tox.ini | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5,8 +5,8 @@ skip_missing_interpreters = True [testenv] commands = - python -m nose2 -v - {coverage,diffcov}: python -m coverage run {[coverage]rc} -m nose2 -v + python -m nose2 -v {posargs} + {coverage,diffcov}: python -m coverage run {[coverage]rc} -m nose2 -v {posargs} {coverage,diffcov}: python -m coverage combine {[coverage]rc} coverage: python -m coverage html {[coverage]rc} coverage: python -m coverage report -m {[coverage]rc} @@ -27,7 +27,7 @@ setenv = coverage: COVERAGE_FILE={toxinidir}/.coverage [testenv:qa] -basepython = python3.5 +basepython = python3 commands = python -m flake8 src deps = |
