Tools has been improved.

openstack.nose_plugin is now used instead of test_lib
tox runs tools/run_XXX commands
commands unified to be used with tox or directly

Change-Id: I7549408937ca43f4731ebbe7c52419c2577335be
This commit is contained in:
Sergey Lukjanov 2013-03-27 10:28:45 +04:00
parent fc8136a8b9
commit 571a050fd2
2 changed files with 4 additions and 12 deletions

View File

@ -8,6 +8,6 @@ cover-package=savanna
cover-html=true
cover-erase=true
cover-inclusive=true
verbosity=2
verbosity=3
detailed-errors=1
where=savanna/tests

14
tox.ini
View File

@ -3,32 +3,24 @@ envlist = py26,py27,pep8,pyflakes
[testenv]
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_OPENSTACK=1
NOSE_OPENSTACK_COLOR=1
NOSE_OPENSTACK_RED=0.05
NOSE_OPENSTACK_YELLOW=0.025
NOSE_OPENSTACK_SHOW_ELAPSED=1
NOSE_OPENSTACK_STDOUT=1
deps =
-r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
commands = nosetests {posargs}
commands = bash tools/run_tests {posargs}
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
deps = pep8>=1.3.3
commands =
pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,test,resources,tools .
pep8 --repeat --show-pep8 --show-source --filename=savanna* bin
commands = bash tools/run_pep8
[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1
[testenv:pyflakes]
deps = {[testenv]deps}
commands = pyflakes bin bin/savanna-api bin/savanna-manage savanna setup.py
commands = bash tools/run_pyflakes
[testenv:venv]
commands = {posargs}