From 20184996ff128bd09844d558c82441412209badc Mon Sep 17 00:00:00 2001 From: caoyue Date: Wed, 13 Jan 2016 14:10:08 +0800 Subject: [PATCH] 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: Id4372ca37664735af54d8c78b70a8668008df4d6 --- tox.ini | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tox.ini b/tox.ini index d5919f9..054074b 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,17 @@ envlist = py34,py27,pypy,pep8 deps = -r{toxinidir}/test-requirements.txt commands = 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