[Configuration] Switch to stestr.
According to OpenStack summit session, stestr is maintained project to which all OpenStack projects should migrate. Change-Id: I4532d02c7298b4e9e19ef079cfb1a365d4d56693
This commit is contained in:
parent
e1b6aa5f1d
commit
b03bdce322
|
@ -27,7 +27,7 @@ cover/
|
||||||
!.coveragerc
|
!.coveragerc
|
||||||
.tox
|
.tox
|
||||||
nosetests.xml
|
nosetests.xml
|
||||||
.testrepository
|
.stestr
|
||||||
.venv
|
.venv
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[DEFAULT]
|
||||||
|
test_path=${TEST_PATH:-./paunch/tests}
|
||||||
|
top_dir=./
|
|
@ -1,7 +0,0 @@
|
||||||
[DEFAULT]
|
|
||||||
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
|
||||||
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
|
||||||
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
|
|
||||||
${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
|
@ -7,7 +7,7 @@ hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0
|
||||||
coverage>=4.0,!=4.4 # Apache-2.0
|
coverage>=4.0,!=4.4 # Apache-2.0
|
||||||
python-subunit>=0.0.18 # Apache-2.0/BSD
|
python-subunit>=0.0.18 # Apache-2.0/BSD
|
||||||
oslotest>=1.10.0 # Apache-2.0
|
oslotest>=1.10.0 # Apache-2.0
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
stestr>=2.0.0 # Apache-2.0
|
||||||
testscenarios>=0.4 # Apache-2.0/BSD
|
testscenarios>=0.4 # Apache-2.0/BSD
|
||||||
testtools>=1.4.0 # MIT
|
testtools>=1.4.0 # MIT
|
||||||
|
|
||||||
|
|
14
tox.ini
14
tox.ini
|
@ -14,8 +14,7 @@ whitelist_externals =
|
||||||
commands =
|
commands =
|
||||||
python -m paunch --version
|
python -m paunch --version
|
||||||
paunch --version
|
paunch --version
|
||||||
bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
|
stestr run {posargs}
|
||||||
testr run {posargs}
|
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
@ -27,7 +26,16 @@ commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands = python setup.py test --coverage --testr-args='{posargs}'
|
setenv =
|
||||||
|
PYTHON=coverage run --source paunch --parallel-mode
|
||||||
|
HOME={envdir}
|
||||||
|
commands =
|
||||||
|
coverage erase
|
||||||
|
stestr run --color {posargs}
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
coverage report
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
|
Loading…
Reference in New Issue