Replace testr with stestr
os-testr 1.0.0 now uses stestr as underlying test runner, so we should re-configure our testing setup accordingly. Change-Id: I0a8f23cf2bd934c288daf1a9fa8b672768641163
This commit is contained in:
parent
a283a3ed58
commit
60e0ea26fb
1
.gitignore
vendored
1
.gitignore
vendored
@ -25,6 +25,7 @@ develop-eggs
|
|||||||
|
|
||||||
# Other
|
# Other
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
.stestr
|
||||||
.testrepository
|
.testrepository
|
||||||
.tox
|
.tox
|
||||||
.idea
|
.idea
|
||||||
|
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=${TESTS_DIR:-./ironicclient/tests/unit}
|
||||||
|
top_dir=./
|
@ -1,5 +0,0 @@
|
|||||||
[DEFAULT]
|
|
||||||
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} ${PYTHON:-python} -m subunit.run discover -t ./ ${TESTS_DIR:-./ironicclient/tests/unit} $LISTOPT $IDOPTION
|
|
||||||
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
11
tox.ini
11
tox.ini
@ -7,7 +7,7 @@ skipsdist = True
|
|||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
PYTHONDONTWRITEBYTECODE = 1
|
PYTHONDONTWRITEBYTECODE = 1
|
||||||
LANGUAGE=en_US
|
LANGUAGE=en_US
|
||||||
# .testr.conf uses TESTS_DIR
|
# .stestr.conf uses TESTS_DIR
|
||||||
TESTS_DIR=./ironicclient/tests/unit
|
TESTS_DIR=./ironicclient/tests/unit
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command =
|
install_command =
|
||||||
@ -27,11 +27,14 @@ commands =
|
|||||||
doc8 doc/source CONTRIBUTING.rst README.rst
|
doc8 doc/source CONTRIBUTING.rst README.rst
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = {[testenv]setenv}
|
||||||
LANGUAGE=en_US
|
PYTHON=coverage run --source ironicclient --omit='*tests*' --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
python setup.py testr --coverage --testr-args='{posargs}'
|
ostestr {posargs}
|
||||||
|
coverage combine
|
||||||
|
coverage report --omit='*tests*'
|
||||||
|
coverage html -d ./cover --omit='*tests*'
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
Loading…
Reference in New Issue
Block a user