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
This commit is contained in:
parent
730be45841
commit
aa2a14a037
4
.gitignore
vendored
4
.gitignore
vendored
@ -26,7 +26,7 @@ pip-log.txt
|
||||
# Unit test / coverage reports
|
||||
.coverage
|
||||
.tox
|
||||
nosetests.xml
|
||||
.stestr/
|
||||
cover
|
||||
|
||||
# Translations
|
||||
@ -35,8 +35,6 @@ cover
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
|
||||
.testrepository
|
||||
|
||||
# generated policy file
|
||||
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 testscenarios
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
from oslotest import base
|
||||
|
||||
from blazar import config as cfg
|
||||
from blazar import context
|
||||
from blazar.db.sqlalchemy import api as db_api
|
||||
from blazar.db.sqlalchemy import facade_wrapper
|
||||
|
@ -100,7 +100,7 @@ statsd==3.2.2
|
||||
stevedore==1.20.0
|
||||
Tempita==0.5.2
|
||||
tenacity==4.9.0
|
||||
testrepository==0.0.18
|
||||
stestr==2.0.0
|
||||
testresources==2.0.1
|
||||
testscenarios==0.4
|
||||
testtools==2.2.0
|
||||
|
@ -5,7 +5,7 @@ hacking>=3.0.1,<3.1.0 # Apache-2.0
|
||||
|
||||
ddt>=1.0.1 # MIT
|
||||
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
|
||||
testtools>=2.2.0 # MIT
|
||||
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
|
||||
PYTHONHASHSEED=0
|
||||
commands =
|
||||
lockutils-wrapper python setup.py testr --slowest --testr-args="{posargs}"
|
||||
stestr run --slowest {posargs}
|
||||
|
||||
sitepackages = False
|
||||
|
||||
@ -25,12 +25,12 @@ setenv =
|
||||
{[testenv]setenv}
|
||||
PYTHON=coverage run --source blazar --parallel-mode
|
||||
commands =
|
||||
coverage erase
|
||||
lockutils-wrapper python setup.py testr --testr-args="{posargs}"
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
coverage report
|
||||
coverage erase
|
||||
stestr run {posargs}
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
coverage report
|
||||
|
||||
[testenv:pep8]
|
||||
commands = flake8 {posargs}
|
||||
|
Loading…
x
Reference in New Issue
Block a user