From a7f0639e9a4c5a9e4ab4bd8b1c586d24ecf01263 Mon Sep 17 00:00:00 2001 From: caoyue Date: Wed, 13 Jan 2016 16:48:34 +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: I4ddc128c27cfcde9dddcbd93851b0995d227098f --- tox.ini | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tox.ini b/tox.ini index d7bc4d1..cb07fc0 100644 --- a/tox.ini +++ b/tox.ini @@ -29,6 +29,14 @@ commands = bash tools/pretty_tox.sh '{posargs}' [testenv:cover] commands = {toxinidir}/tools/cover.sh {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 {posargs}