summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorting.wang <ting.wang@easystack.cn>2016-01-15 16:50:44 +0800
committerting.wang <ting.wang@easystack.cn>2016-02-16 22:25:21 +0800
commit24121951e550aaf1bf34be7223a871dfa591cced (patch)
tree4ce8de13108041fa52735bd55e4b6db0e157ee93 /tox.ini
parent421476157dca5d154c354fb8d00c375a02e2b0d6 (diff)
downloadpython-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.ini11
1 files changed, 11 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index cbd90b1..717f161 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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 =