Switch to use stestr instead of ostestr
This commit switches to use stestr[1] instead of ostestr. We don't need to use ostestr layer because we can use stestr directory. [1] https://github.com/mtreinish/stestr Change-Id: I566dca2f3052520a09558bf315b433984c221034
This commit is contained in:
parent
f7143734f8
commit
14bfbbfc09
2
.gitignore
vendored
2
.gitignore
vendored
@ -35,7 +35,7 @@ pip-log.txt
|
|||||||
!.coveragerc
|
!.coveragerc
|
||||||
.tox
|
.tox
|
||||||
nosetests.xml
|
nosetests.xml
|
||||||
.testrepository
|
.stestr
|
||||||
.venv
|
.venv
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
|
2
.stestr.conf
Normal file
2
.stestr.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=./openstack_health/tests
|
@ -5,7 +5,7 @@ hacking<0.11,>=0.10.0
|
|||||||
|
|
||||||
coverage!=4.4,>=4.0 # Apache-2.0
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
docutils>=0.11 # OSI-Approved Open Source, Public Domain
|
docutils>=0.11 # OSI-Approved Open Source, Public Domain
|
||||||
os-testr>=0.8.0 # Apache-2.0
|
stestr>=1.0.0 # Apache-2.0
|
||||||
mock>=2.0 # BSD
|
mock>=2.0 # BSD
|
||||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||||
sphinx>=1.6.2 # BSD
|
sphinx>=1.6.2 # BSD
|
||||||
|
11
tox.ini
11
tox.ini
@ -12,7 +12,7 @@ deps = -r{toxinidir}/requirements.txt
|
|||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
find . -type f -name "*.pyc" -delete
|
find . -type f -name "*.pyc" -delete
|
||||||
ostestr {posargs}
|
stestr run {posargs}
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
@ -26,7 +26,14 @@ commands =
|
|||||||
flake8 {toxinidir}/openstack_health {posargs}
|
flake8 {toxinidir}/openstack_health {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands = python setup.py test --coverage --coverage-package-name='openstack_health' --testr-args={posargs}
|
setenv =
|
||||||
|
{[testenv]setenv}
|
||||||
|
PYTHON = coverage run --source openstack_health --parallel-mode
|
||||||
|
commands =
|
||||||
|
stestr run {posargs}
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# E125 is a won't fix until https://github.com/jcrocholl/pep8/issues/126 is resolved. For further detail see https://review.openstack.org/#/c/36788/
|
# E125 is a won't fix until https://github.com/jcrocholl/pep8/issues/126 is resolved. For further detail see https://review.openstack.org/#/c/36788/
|
||||||
|
Loading…
Reference in New Issue
Block a user