diff options
author | ting.wang <ting.wang@easystack.cn> | 2016-01-15 16:50:44 +0800 |
---|---|---|
committer | ting.wang <ting.wang@easystack.cn> | 2016-02-16 22:25:21 +0800 |
commit | 24121951e550aaf1bf34be7223a871dfa591cced (patch) | |
tree | 4ce8de13108041fa52735bd55e4b6db0e157ee93 /tox.ini | |
parent | 421476157dca5d154c354fb8d00c375a02e2b0d6 (diff) | |
download | python-saharaclient-24121951e550aaf1bf34be7223a871dfa591cced.tar.gz |
Add debug testenv in tox
Once we add debug testenv, we can use "tox -e debug"
to debug unit test cases when tox is running.
usage:
1. insert pdb into the code.
2. run 'tox -edebug'
Change-Id: I05a3363ebb20587cbe23395654170db5110cae5d
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -25,6 +25,17 @@ setenv = DISCOVER_DIRECTORY=saharaclient/tests/integration/ commands = bash tools/pretty_tox.sh "{posargs}" +[testenv:debug] +commands = oslo_debug_helper -t saharaclient/tests/unit {posargs} + +[testenv:debug-py27] +basepython = python2.7 +commands = oslo_debug_helper -t saharaclient/tests/unit {posargs} + +[testenv:debug-py34] +basepython = python3.4 +commands = oslo_debug_helper -t saharaclient/tests/unit {posargs} + [testenv:functional] passenv = OS_* setenv = |