Merge "Add alternative way to use debugger for unittets "

This commit is contained in:
Jenkins 2015-08-21 15:48:44 +00:00 committed by Gerrit Code Review
commit d09533cc8c
2 changed files with 8 additions and 0 deletions

View File

@ -60,3 +60,8 @@ running single tests by providing a regex.
testlist=$(mktemp)
testr list-tests "$1" > $testlist
python -m testtools.run --load-list $testlist
Another way to use debugger for testing is run tox with command:
$ tox -e debug -- heat.tests.test_stack.StackTest.test_stack_reads_tenant
Note: last approach is mostly useful to run single tests.

View File

@ -78,3 +78,6 @@ max-complexity=20
[hacking]
import_exceptions = heat.common.i18n
[testenv:debug]
commands = oslo_debug_helper {posargs}