Migrate from testr to stestr

* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore, tox.ini and requirements.txt files accordingly

Signed-off-by: HeroicHitesh <email.hiteshkumar@gmail.com>
Change-Id: I3eef3b3b27a7fbd2092457c34da8e3bbe7cbf0d5
This commit is contained in:
HeroicHitesh 2021-07-04 20:57:44 +05:30
parent 039cfd4854
commit 69c89432fd
5 changed files with 16 additions and 9 deletions

14
.gitignore vendored
View File

@ -1,7 +1,15 @@
.testrepository
doc/build
*.egg-info
*.pyc
# Packages
*.egg-info
# Unit test / coverage reports
.tox
.stestr
# Sphinx
doc/build
# pbr generates these
AUTHORS
ChangeLog

3
.stestr.conf Normal file
View File

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

View File

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

View File

@ -1,6 +1,6 @@
pbr!=2.1.0,>=2.0.0 # Apache-2.0
sphinx>=2.0.0,!=2.1.0 # BSD
openstackdocstheme>=2.2.1 # Apache-2.0
testrepository>=0.0.18
stestr>=2.0.0 # Apache-2.0
testtools>=0.9.34
yasfb>=0.5.1

View File

@ -10,7 +10,7 @@ usedevelop = True
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
# NOTE(tonyb): This project has chosen to *NOT* consume upper-constraints.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
commands = stestr run --slowest {posargs}
[testenv:venv]
commands = {posargs}