Add debug to tox enviroment
We can simply run `tox -e debug <test_name>` to debug test. Change-Id: I1f9f66651384923f5ad81165e26e4d41e3e5ca40
This commit is contained in:
parent
918d7f4ac3
commit
b96e207b5a
|
@ -7,6 +7,7 @@ coverage>=4.0 # Apache-2.0
|
||||||
mock>=2.0 # BSD
|
mock>=2.0 # BSD
|
||||||
testtools>=1.4.0 # MIT
|
testtools>=1.4.0 # MIT
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||||
|
oslotest>=1.10.0 # Apache-2.0
|
||||||
|
|
||||||
# doc build requirements
|
# doc build requirements
|
||||||
oslosphinx>=4.7.0 # Apache-2.0
|
oslosphinx>=4.7.0 # Apache-2.0
|
||||||
|
|
6
tox.ini
6
tox.ini
|
@ -14,6 +14,7 @@ commands =
|
||||||
python setup.py testr --slowest --testr-args='{posargs}'
|
python setup.py testr --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
|
find
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands =
|
commands =
|
||||||
|
@ -27,6 +28,11 @@ commands = python setup.py test --coverage \
|
||||||
--coverage-package-name=muranoagent --testr-args='{posargs}'
|
--coverage-package-name=muranoagent --testr-args='{posargs}'
|
||||||
coverage report --omit '*/tests/*'
|
coverage report --omit '*/tests/*'
|
||||||
|
|
||||||
|
[testenv:debug]
|
||||||
|
commands =
|
||||||
|
find . -type f -name "*.pyc" -delete
|
||||||
|
oslo_debug_helper -t muranoagent/tests {posargs}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
commands = python setup.py build_sphinx
|
commands = python setup.py build_sphinx
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue