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
|
||||
templates/cloudformation-examples
|
||||
.tox
|
||||
.coverage
|
||||
cover
|
||||
.testrepository
|
||||
|
@ -3,8 +3,8 @@ distribute>=0.6.24
|
||||
|
||||
coverage
|
||||
mox==0.5.3
|
||||
testrepository>=0.0.13
|
||||
nose
|
||||
nosexcover
|
||||
openstack.nose_plugin>=0.7
|
||||
paramiko
|
||||
pep8==1.3.4
|
||||
|
@ -3,8 +3,8 @@ python-setuptools
|
||||
|
||||
python-coverage
|
||||
python-mox
|
||||
python-testrepository
|
||||
python-nose
|
||||
#nosexcover
|
||||
#openstack.nose_plugin>=0.7
|
||||
python-pep8
|
||||
python-sphinx
|
||||
|
7
tox.ini
7
tox.ini
@ -5,7 +5,8 @@ envlist = py26,py27,pep8
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
deps = -r{toxinidir}/tools/pip-requires
|
||||
-r{toxinidir}/tools/test-requires
|
||||
commands = nosetests -a tag='unit'
|
||||
commands =
|
||||
python setup.py testr --slowest --testr-args='{posargs}'
|
||||
|
||||
[testenv:pep8]
|
||||
commands = bash tools/run_pep8.sh
|
||||
@ -14,7 +15,9 @@ commands = bash tools/run_pep8.sh
|
||||
commands = {posargs}
|
||||
|
||||
[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]
|
||||
downloadcache = ~/cache/pip
|
||||
|
Loading…
Reference in New Issue
Block a user