Skip to content

Commit e7bba32

Browse files
author
Steve Martinelli
committed
Include support for using oslo debugger in tests
Simply run `tox -e debug <test_name>` to get an interactive debugging prompt Change-Id: I09e5b844a33c2f0fd4230f01fbc6c0aa8d752545
1 parent 5b7d3ba commit e7bba32

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎test-requirements.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ discover
88
fixtures>=0.3.14
99
mock>=1.0
1010
oslosphinx>=2.2.0 # Apache-2.0
11+
oslotest>=1.2.0 # Apache-2.0
1112
requests-mock>=0.4.0 # Apache-2.0
1213
sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
1314
testrepository>=0.0.18

‎tox.ini‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ commands = {posargs}
2525
[testenv:cover]
2626
commands = python setup.py test --coverage --testr-args='{posargs}'
2727

28+
[testenv:debug]
29+
commands = oslo_debug_helper -t openstackclient/tests {posargs}
30+
2831
[tox:jenkins]
2932
downloadcache = ~/cache/pip
3033

0 commit comments

Comments
 (0)