From 1a04a9c6a45ac22d57135a903a95b26b7f911583 Mon Sep 17 00:00:00 2001 From: LiuNanke Date: Mon, 11 Jan 2016 21:44:50 +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: Ic0849f0e14dd13d4f6d3e45d0785b21de4b1c7bc --- tox.ini | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tox.ini b/tox.ini index b18f5a89..4f136d02 100644 --- a/tox.ini +++ b/tox.ini @@ -14,6 +14,17 @@ whitelist_externals = bash commands = bash -c "TESTS_DIR=./cue/tests/ 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 {posargs}