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: Ifbcb65237598b99224768a47c18b30473c2eaa3e
This commit is contained in:
Vu Cong Tuan 2018-07-09 13:41:46 +07:00
parent 846fc57b90
commit 9580e50be7
5 changed files with 11 additions and 11 deletions

2
.gitignore vendored
View File

@ -8,7 +8,7 @@
*.pyc
/doc/source/teams/*.rst
/.coverage*
/.testrepository/
.stestr/
/cover/
/unreleased-*.txt
gerrit.ini

3
.stestr.conf Normal file
View File

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

View File

@ -1,4 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 OS_DEBUG=1 ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -6,7 +6,7 @@ hacking>=1.0.0,<1.1.0
fixtures>=3.0.0 # Apache-2.0/BSD
python-subunit>=0.0.18 # 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>=1.4.0 # MIT
oslotest>=1.10.0 # Apache-2.0

11
tox.ini
View File

@ -14,11 +14,15 @@ setenv =
PYTHONUNBUFFERED=1
LOGDIR={envdir}/log
TMPDIR={envdir}/tmp
PYTHON=coverage run --source openstack_releases --parallel-mode
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --coverage --testr-args='{posargs}'
coverage report --show-missing
stestr run '{posargs}'
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report --show-missing
[testenv:validate]
deps =
@ -56,9 +60,6 @@ commands = {posargs}
[testenv:history]
commands = {toxinidir}/tools/build_tag_history.sh {toxinidir}
[testenv:cover]
#commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:docs]
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}