From e7bba3211a08a295a15997a552237b06e2238e3d Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Tue, 21 Oct 2014 18:00:13 -0400 Subject: [PATCH] Include support for using oslo debugger in tests Simply run `tox -e debug ` to get an interactive debugging prompt Change-Id: I09e5b844a33c2f0fd4230f01fbc6c0aa8d752545 --- test-requirements.txt | 1 + tox.ini | 3 +++ 2 files changed, 4 insertions(+) diff --git a/test-requirements.txt b/test-requirements.txt index 1bd4efb8a..259ace266 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -8,6 +8,7 @@ discover fixtures>=0.3.14 mock>=1.0 oslosphinx>=2.2.0 # Apache-2.0 +oslotest>=1.2.0 # Apache-2.0 requests-mock>=0.4.0 # Apache-2.0 sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 testrepository>=0.0.18 diff --git a/tox.ini b/tox.ini index cac6f1169..02dac23a7 100644 --- a/tox.ini +++ b/tox.ini @@ -25,6 +25,9 @@ commands = {posargs} [testenv:cover] commands = python setup.py test --coverage --testr-args='{posargs}' +[testenv:debug] +commands = oslo_debug_helper -t openstackclient/tests {posargs} + [tox:jenkins] downloadcache = ~/cache/pip