diff options
author | Brad Topol <btopol@us.ibm.com> | 2014-07-27 23:23:35 -0500 |
---|---|---|
committer | Brad Topol <btopol@us.ibm.com> | 2014-07-28 13:58:57 -0500 |
commit | 02c6e369060da29192768076eb932067b9b5c3ef (patch) | |
tree | 420e9d33300ce6f532550f42a2717404198be0f7 /tox.ini | |
parent | 39aeafdec66011606a1f9603be1ff390e02bd855 (diff) | |
download | pycadf-02c6e369060da29192768076eb932067b9b5c3ef.tar.gz |
Debug env for tox
Running a test with pdb was difficult because tox captures
output and causes pdb prompt to quit.
Tips for how to run with debug are provided here:
https://wiki.openstack.org/wiki/Testr#Debugging_.28pdb.29_Tests
This change puts these commands into a debug env in tox.ini so
you can do a command like
tox -e debug pycadf.tests.test_cadf_spec
and when it hits your breakpoint you'll get the debug prompt.
Change-Id: I53893d618cd60c0456368088497542db7e4a6eac
Co-Authored-By: Brant Knudson <bknudson@us.ibm.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -26,6 +26,10 @@ commands = python setup.py testr --coverage [testenv:venv] commands = {posargs} +[testenv:debug] +commands = + {toxinidir}/tools/debug_helper.sh {posargs} + [flake8] show-source = True ignore = E128,E251,E265,H405,H904 |