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: If740b4f0946c15a3bb3c3f405edbcee66e66c460
This commit is contained in:
Vu Cong Tuan 2018-07-10 16:06:20 +07:00
parent e26281da2b
commit aebbade4fd
6 changed files with 8 additions and 11 deletions

3
.gitignore vendored
View File

@ -22,8 +22,7 @@ pip-log.txt
.coverage
cover
.tox
nosetests.xml
.testrepository
.stestr/
# Developer
.project

4
.stestr.conf Normal file
View File

@ -0,0 +1,4 @@
[DEFAULT]
test_path=./tests
top_dir=./

View File

@ -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 -t ./ . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -4,7 +4,7 @@
pbr!=2.1.0,>=2.0.0 # Apache-2.0
aodhclient>=0.9.0 # Apache-2.0
gnocchiclient>=3.3.1 # Apache-2.0
python-barbicanclient!=4.5.0,!=4.5.1,>=4.0.0 # Apache-2.0
python-barbicanclient>=4.5.2 # Apache-2.0
python-congressclient<2000,>=1.3.0 # Apache-2.0
python-designateclient>=2.7.0 # Apache-2.0
python-heatclient>=1.10.0 # Apache-2.0

View File

@ -5,6 +5,7 @@ hacking<0.11,>=0.10.0
# this is required for the tests
oslotest>=1.10.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
# this is required for the docs
sphinx>=1.6.2 # BSD

View File

@ -4,7 +4,7 @@ envlist = py35,py27,pep8
[testenv]
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
commands = stestr run --slowest {posargs}
[testenv:pep8]
deps=-r{toxinidir}/test-requirements.txt