Switch to stestr
According to Openstack summit session [1], stestr is maintained project to which all Openstack projects should migrate. Let's switch to stestr as other projects have already moved to it. [1] https://etherpad.openstack.org/p/YVR-python-pti Change-Id: Ic098f8560599554e0b6bb16ae326d4d30a8a5504
This commit is contained in:
parent
5b6e3822c5
commit
9acdfe0b46
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,6 +7,7 @@ dist/
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
*.log
|
*.log
|
||||||
.testrepository
|
.testrepository
|
||||||
|
.stestr/
|
||||||
subunit.log
|
subunit.log
|
||||||
build
|
build
|
||||||
swiftclient/versioninfo
|
swiftclient/versioninfo
|
||||||
|
4
.stestr.conf
Normal file
4
.stestr.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=${OS_TEST_PATH:-./tests/unit}
|
||||||
|
top_dir=./
|
||||||
|
|
@ -1,4 +0,0 @@
|
|||||||
[DEFAULT]
|
|
||||||
test_command=${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./tests/unit} $LISTOPT $IDOPTION
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
@ -39,7 +39,7 @@ six==1.9.0
|
|||||||
snowballstemmer==1.2.1
|
snowballstemmer==1.2.1
|
||||||
sphinx==1.6.2
|
sphinx==1.6.2
|
||||||
sphinxcontrib-websupport==1.0.1
|
sphinxcontrib-websupport==1.0.1
|
||||||
testrepository==0.0.18
|
stestr==2.0.0
|
||||||
testtools==2.2.0
|
testtools==2.2.0
|
||||||
traceback2==1.4.0
|
traceback2==1.4.0
|
||||||
unittest2==1.1.0
|
unittest2==1.1.0
|
||||||
|
@ -5,6 +5,6 @@ keystoneauth1>=3.4.0 # Apache-2.0
|
|||||||
mock>=1.2.0 # BSD
|
mock>=1.2.0 # BSD
|
||||||
oslosphinx>=4.7.0 # Apache-2.0
|
oslosphinx>=4.7.0 # Apache-2.0
|
||||||
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
|
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
|
||||||
testrepository>=0.0.18
|
stestr>=2.0.0 # Apache-2.0
|
||||||
reno>=2.5.0 # Apache-2.0
|
reno>=2.5.0 # Apache-2.0
|
||||||
openstackdocstheme>=1.18.1 # Apache-2.0
|
openstackdocstheme>=1.18.1 # Apache-2.0
|
||||||
|
23
tox.ini
23
tox.ini
@ -16,8 +16,8 @@ deps = -r{toxinidir}/requirements.txt
|
|||||||
.[keystone]
|
.[keystone]
|
||||||
commands = sh -c '(find . -not \( -type d -name .?\* -prune \) \
|
commands = sh -c '(find . -not \( -type d -name .?\* -prune \) \
|
||||||
\( -type d -name "__pycache__" -or -type f -name "*.py[co]" \) \
|
\( -type d -name "__pycache__" -or -type f -name "*.py[co]" \) \
|
||||||
-print0; find . -name "*.dbm*" -print0) | xargs -0 rm -rf'
|
-print0) | xargs -0 rm -rf'
|
||||||
python setup.py testr --testr-args="{posargs}"
|
stestr run {posargs}
|
||||||
whitelist_externals = sh
|
whitelist_externals = sh
|
||||||
passenv = SWIFT_* *_proxy
|
passenv = SWIFT_* *_proxy
|
||||||
|
|
||||||
@ -32,17 +32,28 @@ commands = {posargs}
|
|||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands = python setup.py testr --coverage
|
setenv =
|
||||||
coverage report
|
PYTHON=coverage run --source swiftclient --parallel-mode
|
||||||
|
commands =
|
||||||
|
stestr run
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
coverage report
|
||||||
|
|
||||||
[testenv:func]
|
[testenv:func]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
setenv = OS_TEST_PATH=tests.functional
|
setenv =
|
||||||
|
OS_TEST_PATH=tests.functional
|
||||||
|
PYTHON=coverage run --source swiftclient --parallel-mode
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
coverage
|
coverage
|
||||||
rm
|
rm
|
||||||
commands =
|
commands =
|
||||||
python setup.py testr --coverage --testr-args="--concurrency=1"
|
stestr run --concurrency=1
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
coverage report -m
|
coverage report -m
|
||||||
rm -f .coverage
|
rm -f .coverage
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user