Migrating to testr
Unit Tests and coverage will be launched using testr now. Change-Id: Ib7397181de1137b94bb791cc532384c69679dcda Fixes: bug #1259921
This commit is contained in:
parent
f4752f43e6
commit
92e30f10cf
|
@ -42,5 +42,7 @@ tools/lintstack.head.py
|
||||||
tools/pylint_exceptions
|
tools/pylint_exceptions
|
||||||
savanna/tests/cover
|
savanna/tests/cover
|
||||||
savanna/tests/coverage.xml
|
savanna/tests/coverage.xml
|
||||||
|
cover
|
||||||
htmlcov
|
htmlcov
|
||||||
savanna/openstack/common/db/savanna.sqlite
|
savanna/openstack/common/db/savanna.sqlite
|
||||||
|
.testrepository
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
hacking>=0.8.0,<0.9
|
hacking>=0.8.0,<0.9
|
||||||
|
|
||||||
coverage>=3.6
|
coverage>=3.6
|
||||||
|
discover
|
||||||
docutils==0.9.1
|
docutils==0.9.1
|
||||||
fixtures>=0.3.14
|
fixtures>=0.3.14
|
||||||
mock>=1.0
|
mock>=1.0
|
||||||
|
@ -10,6 +11,7 @@ oslo.sphinx
|
||||||
pylint==0.25.2
|
pylint==0.25.2
|
||||||
sphinx>=1.1.2,<1.2
|
sphinx>=1.1.2,<1.2
|
||||||
sphinxcontrib-httpdomain
|
sphinxcontrib-httpdomain
|
||||||
|
testrepository>=0.0.17
|
||||||
unittest2
|
unittest2
|
||||||
|
|
||||||
python-savannaclient>=0.4.0
|
python-savannaclient>=0.4.0
|
||||||
|
|
5
tox.ini
5
tox.ini
|
@ -18,7 +18,7 @@ setenv =
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands = nosetests -w unit {posargs}
|
commands = python setup.py test --slowest --testr-args="{posargs}"
|
||||||
|
|
||||||
[testenv:integration]
|
[testenv:integration]
|
||||||
setenv =
|
setenv =
|
||||||
|
@ -33,7 +33,8 @@ setenv =
|
||||||
commands = nosetests -w integration -x {posargs}
|
commands = nosetests -w integration -x {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = NOSE_WITH_COVERAGE=1
|
VIRTUAL_ENV={envdir}
|
||||||
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
||||||
|
|
||||||
[tox:jenkins]
|
[tox:jenkins]
|
||||||
downloadcache = ~/cache/pip
|
downloadcache = ~/cache/pip
|
||||||
|
|
Loading…
Reference in New Issue