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:
zhurong 2017-01-17 11:20:39 +08:00
parent 918d7f4ac3
commit b96e207b5a
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,7 @@ coverage>=4.0 # Apache-2.0
mock>=2.0 # BSD
testtools>=1.4.0 # MIT
testrepository>=0.0.18 # Apache-2.0/BSD
oslotest>=1.10.0 # Apache-2.0
# doc build requirements
oslosphinx>=4.7.0 # Apache-2.0

View File

@ -14,6 +14,7 @@ commands =
python setup.py testr --slowest --testr-args='{posargs}'
whitelist_externals = bash
find
[testenv:pep8]
commands =
@ -27,6 +28,11 @@ commands = python setup.py test --coverage \
--coverage-package-name=muranoagent --testr-args='{posargs}'
coverage report --omit '*/tests/*'
[testenv:debug]
commands =
find . -type f -name "*.pyc" -delete
oslo_debug_helper -t muranoagent/tests {posargs}
[testenv:docs]
commands = python setup.py build_sphinx