diff options
author | Yadnesh Kulkarni <ykulkarn@redhat.com> | 2022-07-04 10:12:49 +0000 |
---|---|---|
committer | Yadnesh Kulkarni <ykulkarn@redhat.com> | 2022-07-04 10:18:09 +0000 |
commit | 0b6abba5d387940f142493f3675b4e2a9d631287 (patch) | |
tree | 74516fe054d699aa8500f34754fc9258ae6bcb44 /tox.ini | |
parent | 41ac16b5ed2bb1b58c686f246d611db0b3914c33 (diff) | |
download | ceilometer-0b6abba5d387940f142493f3675b4e2a9d631287.tar.gz |
Add debug to tox environment
The oslotest package distributes a shell file that may be used to assist
in debugging python code. The shell file uses testtools, and supports
debugging with pdb.
To enable debugging, run tox with the debug environment. Below are the
following ways to run it.
* tox -e debug module
* tox -e debug module.test_class
* tox -e debug module.test_class.test_method
Signed-off-by: Yadnesh Kulkarni <ykulkarn@redhat.com>
Change-Id: I7015ab52ba3f5075b5e06992bb8d72f52104a24e
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -60,6 +60,11 @@ commands = sphinx-build -W -b latex doc/source doc/build/pdf make -C doc/build/pdf +[testenv:debug] +commands= + find . -type f -name "*.pyc" -delete + oslo_debug_helper {posargs} + [testenv:venv] commands = {posargs} setenv = PYTHONHASHSEED=0 |