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: Ia52506cfe130b5abd867519337bcaedd589a98d4
This commit is contained in:
ting.wang
2016-01-12 13:10:51 +08:00
parent 2ff64787c5
commit 53e50c04ee
2 changed files with 12 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ fixtures>=1.3.1
mock>=1.2
ordereddict
oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
tempest-lib>=0.12.0
testrepository>=0.0.18

11
tox.ini
View File

@@ -17,6 +17,17 @@ commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --testr-args='{posargs}'
[testenv:debug]
commands = oslo_debug_helper -t manilaclient/tests {posargs}
[testenv:debug-py27]
basepython = python2.7
commands = oslo_debug_helper -t manilaclient/tests {posargs}
[testenv:debug-py34]
basepython = python3.4
commands = oslo_debug_helper -t manilaclient/tests {posargs}
[testenv:pep8]
commands =
flake8