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:
parent
039cfd4854
commit
69c89432fd
14
.gitignore
vendored
14
.gitignore
vendored
@ -1,7 +1,15 @@
|
|||||||
.testrepository
|
|
||||||
doc/build
|
|
||||||
*.egg-info
|
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
||||||
|
# Packages
|
||||||
|
*.egg-info
|
||||||
|
|
||||||
|
# Unit test / coverage reports
|
||||||
.tox
|
.tox
|
||||||
|
.stestr
|
||||||
|
|
||||||
|
# Sphinx
|
||||||
|
doc/build
|
||||||
|
|
||||||
|
# pbr generates these
|
||||||
AUTHORS
|
AUTHORS
|
||||||
ChangeLog
|
ChangeLog
|
||||||
|
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=./tests/
|
||||||
|
top_dir=./
|
@ -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
|
|
@ -1,6 +1,6 @@
|
|||||||
pbr!=2.1.0,>=2.0.0 # Apache-2.0
|
pbr!=2.1.0,>=2.0.0 # Apache-2.0
|
||||||
sphinx>=2.0.0,!=2.1.0 # BSD
|
sphinx>=2.0.0,!=2.1.0 # BSD
|
||||||
openstackdocstheme>=2.2.1 # Apache-2.0
|
openstackdocstheme>=2.2.1 # Apache-2.0
|
||||||
testrepository>=0.0.18
|
stestr>=2.0.0 # Apache-2.0
|
||||||
testtools>=0.9.34
|
testtools>=0.9.34
|
||||||
yasfb>=0.5.1
|
yasfb>=0.5.1
|
||||||
|
2
tox.ini
2
tox.ini
@ -10,7 +10,7 @@ usedevelop = True
|
|||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
# NOTE(tonyb): This project has chosen to *NOT* consume upper-constraints.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]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
Loading…
Reference in New Issue
Block a user