From 8727ac64326556190c924f36b912c868b4ce7f1c Mon Sep 17 00:00:00 2001 From: caoyue Date: Mon, 18 Jan 2016 14:26:01 +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: I7eb11806c1bf8d2fd1fccf2e84ce92ce197b3842 --- test-requirements.txt | 2 +- tox.ini | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index 1fcb0602..45026877 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -10,7 +10,7 @@ ddt>=0.7.0 python-subunit>=0.0.18 sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 oslosphinx>=2.5.0 # Apache-2.0 -oslotest>=1.7.0 # Apache-2.0 +oslotest>=1.10.0 # Apache-2.0 testrepository>=0.0.18 testscenarios>=0.4 testtools>=1.4.0 diff --git a/tox.ini b/tox.ini index bc548bf4..7d3b0781 100644 --- a/tox.ini +++ b/tox.ini @@ -21,6 +21,17 @@ commands = find . -type f -name "*.py[c|o]" -delete basepython = python2.7 setenv = OS_TEST_PATH=./kuryr/tests/fullstack +[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