summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorYadnesh Kulkarni <ykulkarn@redhat.com>2022-07-04 10:12:49 +0000
committerYadnesh Kulkarni <ykulkarn@redhat.com>2022-07-04 10:18:09 +0000
commit0b6abba5d387940f142493f3675b4e2a9d631287 (patch)
tree74516fe054d699aa8500f34754fc9258ae6bcb44 /tox.ini
parent41ac16b5ed2bb1b58c686f246d611db0b3914c33 (diff)
downloadceilometer-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.ini5
1 files changed, 5 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index d76f1f03..cb7fc7bc 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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