Use testr for running gate tests
Fixes bug 1172468 Change-Id: Ifd87e44d752b4b3c77b4ea8f38feceb03bccaebe
This commit is contained in:
parent
8b8525260d
commit
405510e263
3
.gitignore
vendored
3
.gitignore
vendored
@ -11,3 +11,6 @@ AUTHORS
|
|||||||
ChangeLog
|
ChangeLog
|
||||||
templates/cloudformation-examples
|
templates/cloudformation-examples
|
||||||
.tox
|
.tox
|
||||||
|
.coverage
|
||||||
|
cover
|
||||||
|
.testrepository
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
7
tox.ini
7
tox.ini
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user