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: Ic0849f0e14dd13d4f6d3e45d0785b21de4b1c7bc
This commit is contained in:
LiuNanke 2016-01-11 21:44:50 +08:00 committed by Min Pae
parent ea98738844
commit 1a04a9c6a4
1 changed files with 11 additions and 0 deletions

11
tox.ini
View File

@ -14,6 +14,17 @@ whitelist_externals = bash
commands =
bash -c "TESTS_DIR=./cue/tests/ 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 {posargs}