Switch to use stestr instead of testr
os-testr has moved over to use stestr instead of testr. While this is usually compatible with existing settings, there is a warning that is emitted when .stestr.conf is not present. It is usually able to fall back to parsing the .testr.conf file, but to be more correct and to prevent future problems we should update the config. Change-Id: I10446c539aaf9edd8b52b17776e08c12757def31 Depends-On: I98a296d009e64d6afab02a53bd1af878f78c4321
This commit is contained in:
parent
4197a71623
commit
73315f2a89
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,7 +2,6 @@
|
|||||||
*.swp
|
*.swp
|
||||||
.coverage
|
.coverage
|
||||||
.idea
|
.idea
|
||||||
.testrepository
|
|
||||||
.stestr/*
|
.stestr/*
|
||||||
.tox/*
|
.tox/*
|
||||||
.venv
|
.venv
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
test_path=${OS_TEST_PATH:-./manilaclient/tests/unit}
|
test_path=${OS_TEST_PATH:-./manilaclient/tests/unit}
|
||||||
top_dir=./
|
top_dir=./
|
||||||
group_regex=([^\.]*\.)*
|
|
||||||
|
@ -1,9 +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 -t ./ ${OS_TEST_PATH:-./manilaclient/tests/unit} $LISTOPT $IDOPTION
|
|
||||||
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
||||||
group_regex=([^\.]*\.)*
|
|
@ -22,6 +22,7 @@ future==0.16.0
|
|||||||
hacking==0.12.0
|
hacking==0.12.0
|
||||||
idna==2.6
|
idna==2.6
|
||||||
imagesize==0.7.1
|
imagesize==0.7.1
|
||||||
|
ipaddress==1.0.17
|
||||||
iso8601==0.1.11
|
iso8601==0.1.11
|
||||||
Jinja2==2.10
|
Jinja2==2.10
|
||||||
jmespath==0.9.0
|
jmespath==0.9.0
|
||||||
@ -55,7 +56,7 @@ paramiko==2.0.0
|
|||||||
pbr==2.0.0
|
pbr==2.0.0
|
||||||
pep8==1.5.7
|
pep8==1.5.7
|
||||||
positional==1.2.1
|
positional==1.2.1
|
||||||
prettytable==0.7.2
|
prettytable==0.7.1
|
||||||
pyasn1==0.1.8
|
pyasn1==0.1.8
|
||||||
pycparser==2.18
|
pycparser==2.18
|
||||||
pyflakes==0.8.1
|
pyflakes==0.8.1
|
||||||
|
@ -11,6 +11,5 @@ fixtures>=3.0.0 # Apache-2.0/BSD
|
|||||||
mock>=2.0.0 # BSD
|
mock>=2.0.0 # BSD
|
||||||
os-testr>=1.0.0 # Apache-2.0
|
os-testr>=1.0.0 # Apache-2.0
|
||||||
tempest>=17.1.0 # Apache-2.0
|
tempest>=17.1.0 # Apache-2.0
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
|
||||||
testtools>=2.2.0 # MIT
|
testtools>=2.2.0 # MIT
|
||||||
python-openstackclient>=3.12.0 # Apache-2.0
|
python-openstackclient>=3.12.0 # Apache-2.0
|
||||||
|
17
tox.ini
17
tox.ini
@ -18,7 +18,8 @@ deps =
|
|||||||
-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}'
|
||||||
|
stestr slowest
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
commands = oslo_debug_helper -t manilaclient/tests {posargs}
|
commands = oslo_debug_helper -t manilaclient/tests {posargs}
|
||||||
@ -64,11 +65,11 @@ commands =
|
|||||||
setenv =
|
setenv =
|
||||||
{[testenv]setenv}
|
{[testenv]setenv}
|
||||||
OS_TEST_PATH = ./manilaclient/tests/functional
|
OS_TEST_PATH = ./manilaclient/tests/functional
|
||||||
OS_TEST_TIMEOUT = 500
|
OS_SHARE_API_VERSION = 2
|
||||||
OS_MANILA_EXEC_DIR = {envdir}/bin
|
passenv = OS_*
|
||||||
commands =
|
commands =
|
||||||
{envdir}/bin/python setup.py install
|
{envdir}/bin/python setup.py install
|
||||||
{envdir}/bin/python setup.py testr --testr-args='{posargs}'
|
stestr run '{posargs}'
|
||||||
|
|
||||||
[testenv:genconfig]
|
[testenv:genconfig]
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
@ -77,8 +78,14 @@ commands =
|
|||||||
{envdir}/bin/oslo-config-generator --config-file etc/oslo-config-generator/manilaclient.conf
|
{envdir}/bin/oslo-config-generator --config-file etc/oslo-config-generator/manilaclient.conf
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
|
setenv =
|
||||||
|
{[testenv]setenv}
|
||||||
|
PYTHON=coverage run --source manilaclient --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
python setup.py testr --coverage --testr-args='{posargs}'
|
stestr run {posargs}
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
coverage report
|
coverage report
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
Loading…
Reference in New Issue
Block a user