Comply with PTI for Python testing
Project Testing Interface for Python [0] suggests to use stestr as unit test runner uniformly across all OpenStack projects. [0] https://governance.openstack.org/tc/reference/pti/python.html Change-Id: I1c321500a2256b09cb6a58f6cd7070c9dc702555
This commit is contained in:
parent
d69dc019cb
commit
64a90a6700
@ -10,9 +10,9 @@ Babel!=2.4.0,>=2.3.4 # BSD
|
|||||||
PyMySQL>=0.7.6 # MIT License
|
PyMySQL>=0.7.6 # MIT License
|
||||||
iso8601>=0.1.11 # MIT
|
iso8601>=0.1.11 # MIT
|
||||||
oslotest>=3.2.0 # Apache-2.0
|
oslotest>=3.2.0 # Apache-2.0
|
||||||
|
stestr # Apache-2.0
|
||||||
psycopg2>=2.6.2 # LGPL/ZPL
|
psycopg2>=2.6.2 # LGPL/ZPL
|
||||||
testtools>=2.2.0 # MIT
|
testtools>=2.2.0 # MIT
|
||||||
os-testr>=1.0.0 # Apache-2.0
|
|
||||||
testresources>=2.0.0 # Apache-2.0/BSD
|
testresources>=2.0.0 # Apache-2.0/BSD
|
||||||
testscenarios>=0.4 # Apache-2.0/BSD
|
testscenarios>=0.4 # Apache-2.0/BSD
|
||||||
WebTest>=2.0.27 # MIT
|
WebTest>=2.0.27 # MIT
|
||||||
|
4
tox.ini
4
tox.ini
@ -14,7 +14,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
TESTS_DIR=./ironic/tests/unit/
|
TESTS_DIR=./ironic/tests/unit/
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
ostestr {posargs}
|
stestr run {posargs}
|
||||||
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||||
|
|
||||||
[testenv:unit-with-driver-libs]
|
[testenv:unit-with-driver-libs]
|
||||||
@ -45,7 +45,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
PYTHON=coverage run --source ironic --omit='*tests*' --parallel-mode
|
PYTHON=coverage run --source ironic --omit='*tests*' --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
ostestr {posargs}
|
stestr run {posargs}
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage report --omit='*tests*'
|
coverage report --omit='*tests*'
|
||||||
coverage html -d ./cover --omit='*tests*'
|
coverage html -d ./cover --omit='*tests*'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user