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: I0948bd22e257285c77fb61564684ab31080ecf54
This commit is contained in:
parent
50e1e58fe8
commit
7d3192cdee
24
.gitignore
vendored
24
.gitignore
vendored
@ -1,16 +1,26 @@
|
|||||||
*.swp
|
*.log
|
||||||
|
subunit.log
|
||||||
|
.autogenerated
|
||||||
|
*.py[co]
|
||||||
|
|
||||||
|
# Packages
|
||||||
dist/
|
dist/
|
||||||
.tox
|
|
||||||
*.egg
|
*.egg
|
||||||
*.egg-info
|
*.egg-info
|
||||||
*.py[co]
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.log
|
|
||||||
.testrepository
|
|
||||||
subunit.log
|
|
||||||
build
|
build
|
||||||
.autogenerated
|
|
||||||
|
# Unit test
|
||||||
.coverage
|
.coverage
|
||||||
cover/
|
cover/
|
||||||
coverage.xml
|
coverage.xml
|
||||||
|
.stestr
|
||||||
|
.testrepository
|
||||||
|
.tox
|
||||||
|
.venv
|
||||||
|
|
||||||
|
# Sphinx
|
||||||
doc/source/api/
|
doc/source/api/
|
||||||
|
|
||||||
|
# Editors
|
||||||
|
*.swp
|
||||||
|
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 -t ./ ./tests $LISTOPT $IDOPTION
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
@ -2,5 +2,5 @@ hacking>=0.10.0,<0.11
|
|||||||
|
|
||||||
coverage>=3.6
|
coverage>=3.6
|
||||||
mock>=1.0
|
mock>=1.0
|
||||||
testrepository>=0.0.17
|
stestr>=2.0.0 # Apache-2.0
|
||||||
testtools>=0.9.32
|
testtools>=0.9.32
|
||||||
|
2
tox.ini
2
tox.ini
@ -7,7 +7,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
|
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands = python setup.py testr --testr-args="{posargs}"
|
commands = stestr run --slowest {posargs}
|
||||||
passenv = *_proxy *_PROXY
|
passenv = *_proxy *_PROXY
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user