Add debug testenv in tox

Once we add debug testenv, we can use "tox -e debug -- --debug"
to debug test cases when tox is running.

Change-Id: Id4372ca37664735af54d8c78b70a8668008df4d6
This commit is contained in:
caoyue 2016-01-13 14:10:08 +08:00
parent 35601ed1b4
commit 20184996ff
1 changed files with 11 additions and 0 deletions

11
tox.ini
View File

@ -6,6 +6,17 @@ envlist = py34,py27,pypy,pep8
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:debug]
commands = oslo_debug_helper {posargs}
[testenv:debug-py27]
basepython = python2.7
commands = oslo_debug_helper {posargs}
[testenv:debug-py34]
basepython = python3.4
commands = oslo_debug_helper {posargs}
[testenv:pep8]
commands = flake8