Use testr for running gate tests

Fixes bug 1172468

Change-Id: Ifd87e44d752b4b3c77b4ea8f38feceb03bccaebe
This commit is contained in:
Clint Byrum 2013-04-24 20:07:37 -07:00
parent 8b8525260d
commit 405510e263
4 changed files with 10 additions and 4 deletions

3
.gitignore vendored
View File

@ -11,3 +11,6 @@ AUTHORS
ChangeLog ChangeLog
templates/cloudformation-examples templates/cloudformation-examples
.tox .tox
.coverage
cover
.testrepository

View File

@ -3,8 +3,8 @@ distribute>=0.6.24
coverage coverage
mox==0.5.3 mox==0.5.3
testrepository>=0.0.13
nose nose
nosexcover
openstack.nose_plugin>=0.7 openstack.nose_plugin>=0.7
paramiko paramiko
pep8==1.3.4 pep8==1.3.4

View File

@ -3,8 +3,8 @@ python-setuptools
python-coverage python-coverage
python-mox python-mox
python-testrepository
python-nose python-nose
#nosexcover
#openstack.nose_plugin>=0.7 #openstack.nose_plugin>=0.7
python-pep8 python-pep8
python-sphinx python-sphinx

View File

@ -5,7 +5,8 @@ envlist = py26,py27,pep8
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/tools/pip-requires deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires -r{toxinidir}/tools/test-requires
commands = nosetests -a tag='unit' commands =
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8] [testenv:pep8]
commands = bash tools/run_pep8.sh commands = bash tools/run_pep8.sh
@ -14,7 +15,9 @@ commands = bash tools/run_pep8.sh
commands = {posargs} commands = {posargs}
[testenv:cover] [testenv:cover]
commands = nosetests --cover-erase --cover-package=heat --with-xcoverage -a tag='unit' setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --coverage
[tox:jenkins] [tox:jenkins]
downloadcache = ~/cache/pip downloadcache = ~/cache/pip