Files
python-barbicanclient/tox.ini
Juan Antonio Osorio Robles 9508151e6c Enable usage of oslo_debug_helper from tox
The script oslo_debug_helper enables the usage of Python's pdb without
having to do the tedious listing of test cases from testr and then
running it. Only thing that needs to be done now is the adding of
"import pdb; pdb.set_trace()" as usual and then one can just call:

    $ tox -e debug

And we will end up in the debugger when that test is hit.

Note that you can also give a test_regex such as:

    $ tox -e debug -- some_test_regex

To run only tests that match that regex.

Change-Id: I63386e68ac3ef5c05bc8290d889efa7f71b33cf1
2015-01-17 17:47:49 +02:00

37 lines
785 B
INI

[tox]
minversion = 1.6
envlist = py33,py34,py26,py27,pypy,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --coverage --testr-args='{posargs}'
coverage combine
coverage report -m
[testenv:debug]
commands = oslo_debug_helper -t barbicanclient {posargs}
[testenv:pep8]
commands = {toxinidir}/tools/hacking.sh {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[tox:jenkins]
downloadcache = ~/cache/pip
[flake8]
show-source = True
ignore = F,H
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build