Add debug to tox enviroment
We can simply run `tox -e debug <test_name>` to debug test. Change-Id: Ib5fe98014dc91fa81809f336264856cd0f86e950
This commit is contained in:
parent
2cb00dbbd9
commit
8be8fd8faa
|
@ -11,6 +11,7 @@ tempest>=12.1.0 # Apache-2.0
|
|||
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||
testscenarios>=0.4 # Apache-2.0/BSD
|
||||
testtools>=1.4.0 # MIT
|
||||
oslotest>=1.10.0 # Apache-2.0
|
||||
|
||||
# doc build requirements
|
||||
oslosphinx>=4.7.0 # Apache-2.0
|
||||
|
|
6
tox.ini
6
tox.ini
|
@ -6,6 +6,7 @@ skipsdist = True
|
|||
[testenv]
|
||||
usedevelop = True
|
||||
whitelist_externals = bash
|
||||
find
|
||||
install_command =
|
||||
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
|
@ -36,6 +37,11 @@ commands = python setup.py testr --slowest --testr-args="--concurrency 1 {posarg
|
|||
[testenv:cover]
|
||||
commands = {toxinidir}/tools/cover.sh {posargs}
|
||||
|
||||
[testenv:debug]
|
||||
commands =
|
||||
find . -type f -name "*.pyc" -delete
|
||||
oslo_debug_helper -t muranoclient/tests {posargs}
|
||||
|
||||
[testenv:pyflakes]
|
||||
deps = flake8
|
||||
commands = flake8
|
||||
|
|
Loading…
Reference in New Issue