From 39c3fc41a0d7862df862657d4a565a304aa5f168 Mon Sep 17 00:00:00 2001 From: "ting.wang" Date: Tue, 12 Jan 2016 11:16:39 +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: I3b7a090042e95ac89d6829495bf42f84e11bbd21 --- tox.ini | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tox.ini b/tox.ini index 1fb767d9..18fb577a 100644 --- a/tox.ini +++ b/tox.ini @@ -18,6 +18,17 @@ deps = setuptools<3.2 -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt +[testenv:debug] +commands = oslo_debug_helper -t heatclient/tests {posargs} + +[testenv:debug-py27] +basepython = python2.7 +commands = oslo_debug_helper -t heatclient/tests {posargs} + +[testenv:debug-py34] +basepython = python3.4 +commands = oslo_debug_helper -t heatclient/tests {posargs} + [testenv:pep8] commands = flake8