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: I6f59056abec4ee0021d705bd74b907029b4e8664
This commit is contained in:
Vu Cong Tuan 2018-07-04 15:22:11 +07:00
parent 25962a1c33
commit cae1c8c699
6 changed files with 15 additions and 8 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
cover
.tox
.testrepository
.stestr/
# Packages
.eggs

3
.stestr.conf Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=./tripleo_repos/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_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./tripleo_repos ./tripleo_repos $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -3,4 +3,4 @@
# process, which may cause wedges in the gate later.
pbr!=2.1.0,>=2.0.0 # Apache-2.0
requests>=2.10.0,!=2.12.2 # Apache-2.0
requests>=2.10.0 # Apache-2.0

View File

@ -12,9 +12,10 @@ oslotest>=1.10.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
stestr>=2.0.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
mock>=2.0 # BSD
# releasenotes
reno>=1.8.0,!=2.3.1 # Apache-2.0
reno>=2.5.0 # Apache-2.0

10
tox.ini
View File

@ -9,7 +9,7 @@ install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstac
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
commands = stestr run --slowest {posargs}
[testenv:venv]
commands = {posargs}
@ -22,7 +22,13 @@ deps = flake8
commands = flake8
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=tripleo_repos --testr-args='{posargs}'
setenv =
PYTHON=coverage run --source tripleo_repos --parallel-mode
commands =
stestr run '{posargs}'
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[flake8]
ignore = H803