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: I7eb11806c1bf8d2fd1fccf2e84ce92ce197b3842
This commit is contained in:
caoyue 2016-01-18 14:26:01 +08:00
parent 255ce9ec69
commit 8727ac6432
2 changed files with 12 additions and 1 deletions

View File

@ -10,7 +10,7 @@ ddt>=0.7.0
python-subunit>=0.0.18
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
oslosphinx>=2.5.0 # Apache-2.0
oslotest>=1.7.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
testrepository>=0.0.18
testscenarios>=0.4
testtools>=1.4.0

11
tox.ini
View File

@ -21,6 +21,17 @@ commands = find . -type f -name "*.py[c|o]" -delete
basepython = python2.7
setenv = OS_TEST_PATH=./kuryr/tests/fullstack
[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