Migrate from testr to stestr
* Replace .testr.conf by .stestr.conf for migration and update .gitignore, tox.ini and test-requirements.txt files accordingly Signed-off-by: HeroicHitesh <email.hiteshkumar@gmail.com> Change-Id: Ia577800e7a342beaad58009239a98b9e7044d01a
This commit is contained in:
parent
1635ba8abe
commit
7b7458b317
|
@ -1,15 +1,24 @@
|
||||||
*~
|
|
||||||
.testrepository
|
|
||||||
*.sw?
|
|
||||||
*.pyc
|
*.pyc
|
||||||
|
*.qcow2
|
||||||
|
elements/seed-stack-config/local.json
|
||||||
|
|
||||||
|
# Unit test / coverage reports
|
||||||
|
.stestr
|
||||||
.tox
|
.tox
|
||||||
|
.venv
|
||||||
|
|
||||||
|
# Packages
|
||||||
*.egg-info
|
*.egg-info
|
||||||
dist
|
dist
|
||||||
*.qcow2
|
|
||||||
build
|
build
|
||||||
|
|
||||||
|
# pbr generates these
|
||||||
AUTHORS
|
AUTHORS
|
||||||
ChangeLog
|
ChangeLog
|
||||||
elements/seed-stack-config/local.json
|
|
||||||
|
# Editors
|
||||||
|
*.sw?
|
||||||
|
*~
|
||||||
|
|
||||||
# Files created by releasenotes build
|
# Files created by releasenotes build
|
||||||
releasenotes/build
|
releasenotes/build
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[DEFAULT]
|
||||||
|
test_path=./tests/
|
||||||
|
top_dir=./
|
|
@ -1,5 +0,0 @@
|
||||||
[DEFAULT]
|
|
||||||
test_command=python -m subunit.run discover . $LISTOPT $IDOPTION
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
hacking>=2.0.0
|
hacking>=2.0.0
|
||||||
|
|
||||||
oslotest
|
oslotest
|
||||||
testrepository>=0.0.18
|
stestr>=2.0.0 # Apache-2.0
|
||||||
pyflakes>=2.2.0
|
pyflakes>=2.2.0
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -11,8 +11,7 @@ deps =
|
||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands=
|
commands = stestr run --slowest {posargs}
|
||||||
python setup.py testr --slowest --testr-args='{posargs}'
|
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
Loading…
Reference in New Issue