Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I9d22be39bec67fc17841367a0ef0ac439143af6c
(cherry picked from commit aa2a14a037
)
This commit is contained in:
parent
e33f4ea826
commit
4647bfdd61
4
.gitignore
vendored
4
.gitignore
vendored
@ -26,7 +26,7 @@ pip-log.txt
|
|||||||
# Unit test / coverage reports
|
# Unit test / coverage reports
|
||||||
.coverage
|
.coverage
|
||||||
.tox
|
.tox
|
||||||
nosetests.xml
|
.stestr/
|
||||||
cover
|
cover
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
@ -35,8 +35,6 @@ cover
|
|||||||
AUTHORS
|
AUTHORS
|
||||||
ChangeLog
|
ChangeLog
|
||||||
|
|
||||||
.testrepository
|
|
||||||
|
|
||||||
# generated policy file
|
# generated policy file
|
||||||
etc/blazar/policy.yaml.sample
|
etc/blazar/policy.yaml.sample
|
||||||
|
|
||||||
|
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=${TEST_PATH:-./blazar/tests}
|
||||||
|
top_dir=./
|
@ -1,7 +0,0 @@
|
|||||||
[DEFAULT]
|
|
||||||
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
|
||||||
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
|
||||||
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
|
|
||||||
${PYTHON:-python} -m subunit.run discover $DISCOVER_DIRECTORY $LISTOPT $IDOPTION
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
@ -17,10 +17,10 @@ import fixtures
|
|||||||
import tempfile
|
import tempfile
|
||||||
import testscenarios
|
import testscenarios
|
||||||
|
|
||||||
from oslo_config import cfg
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from oslotest import base
|
from oslotest import base
|
||||||
|
|
||||||
|
from blazar import config as cfg
|
||||||
from blazar import context
|
from blazar import context
|
||||||
from blazar.db.sqlalchemy import api as db_api
|
from blazar.db.sqlalchemy import api as db_api
|
||||||
from blazar.db.sqlalchemy import facade_wrapper
|
from blazar.db.sqlalchemy import facade_wrapper
|
||||||
|
@ -100,7 +100,7 @@ statsd==3.2.2
|
|||||||
stevedore==1.20.0
|
stevedore==1.20.0
|
||||||
Tempita==0.5.2
|
Tempita==0.5.2
|
||||||
tenacity==4.9.0
|
tenacity==4.9.0
|
||||||
testrepository==0.0.18
|
stestr==2.0.0
|
||||||
testresources==2.0.1
|
testresources==2.0.1
|
||||||
testscenarios==0.4
|
testscenarios==0.4
|
||||||
testtools==2.2.0
|
testtools==2.2.0
|
||||||
|
@ -5,7 +5,7 @@ hacking>=3.0.1,<3.1.0 # Apache-2.0
|
|||||||
|
|
||||||
ddt>=1.0.1 # MIT
|
ddt>=1.0.1 # MIT
|
||||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
stestr>=2.0.0 # Apache-2.0
|
||||||
testscenarios>=0.4 # Apache-2.0/BSD
|
testscenarios>=0.4 # Apache-2.0/BSD
|
||||||
testtools>=2.2.0 # MIT
|
testtools>=2.2.0 # MIT
|
||||||
coverage!=4.4,>=4.0 # Apache-2.0
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
|
14
tox.ini
14
tox.ini
@ -16,7 +16,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
DISCOVER_DIRECTORY=blazar/tests
|
DISCOVER_DIRECTORY=blazar/tests
|
||||||
PYTHONHASHSEED=0
|
PYTHONHASHSEED=0
|
||||||
commands =
|
commands =
|
||||||
lockutils-wrapper python setup.py testr --slowest --testr-args="{posargs}"
|
stestr run --slowest {posargs}
|
||||||
|
|
||||||
sitepackages = False
|
sitepackages = False
|
||||||
|
|
||||||
@ -25,12 +25,12 @@ setenv =
|
|||||||
{[testenv]setenv}
|
{[testenv]setenv}
|
||||||
PYTHON=coverage run --source blazar --parallel-mode
|
PYTHON=coverage run --source blazar --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
lockutils-wrapper python setup.py testr --testr-args="{posargs}"
|
stestr run {posargs}
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage html -d cover
|
coverage html -d cover
|
||||||
coverage xml -o cover/coverage.xml
|
coverage xml -o cover/coverage.xml
|
||||||
coverage report
|
coverage report
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
skip_install = True
|
skip_install = True
|
||||||
|
Loading…
Reference in New Issue
Block a user