Add a debug tox environment

Uses oslo_debug_helper to run up the tests in single-threaded
mode so that pdb works.

Examples:
 # Run all tests.
 tox -e debug
 # Run a specific test or set of tests.
 tox -e debug module.to.my.test

Change-Id: I272f6aa34bafcd7ac2d2828cbd6dd48e0e615b79
This commit is contained in:
Julian Edwards 2017-03-31 14:29:19 +10:00
parent 4be702242e
commit 393d686638

View File

@ -43,6 +43,10 @@ commands =
setenv = PYTHONHASHSEED=0
commands = {posargs:}
[testenv:debug]
envdir = {toxworkdir}/venv
commands = oslo_debug_helper -t ironic_python_agent/tests/unit {posargs}
[testenv:devenv]
envdir = devenv
usedevelop = True