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: Ieca57f7c2e6b2ff5c95f8643985ad760c71e0fc3
This commit is contained in:
Vu Cong Tuan 2018-07-10 17:17:00 +07:00
parent 5454ce5922
commit eaa81ffdfc
6 changed files with 15 additions and 10 deletions

3
.gitignore vendored
View File

@ -13,7 +13,6 @@ coverage.xml
cover/*
covhtml
pep8.txt
nosetests.xml
doc/build
.DS_Store
doc/source/api
@ -24,5 +23,5 @@ build/
dist/
.project
.pydevproject
.testrepository/
.stestr/
*.db

4
.stestr.conf Normal file
View File

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

View File

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

View File

@ -28,7 +28,7 @@ six==1.10.0
snowballstemmer==1.2.1
Sphinx==1.6.2
sphinxcontrib-websupport==1.0.1
testrepository==0.0.18
stestr==2.0.0
testresources==2.0.0
testtools==2.2.0
traceback2==1.4.0

View File

@ -10,6 +10,6 @@ coverage!=4.4,>=4.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
openstackdocstheme>=1.18.1 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
stestr>=2.0.0 # Apache-2.0
testresources>=2.0.0 # Apache-2.0/BSD
testtools>=2.2.0 # MIT

10
tox.ini
View File

@ -15,7 +15,7 @@ deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
stestr run --slowest {posargs}
whitelist_externals = find
[testenv:pep8]
@ -26,7 +26,13 @@ commands =
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
setenv =
PYTHON=coverage run --source ldappool --parallel-mode
commands =
stestr run '{posargs}'
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[flake8]
# D100: Missing docstring in public module