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: I96c7c264dab04a7f52e2c77a1165ed51137bfae0
This commit is contained in:
parent
9d34339c06
commit
9f70179a3d
4
.gitignore
vendored
4
.gitignore
vendored
@ -21,6 +21,6 @@ doc/source/reference/api/*
|
||||
doc/build/*
|
||||
dist
|
||||
designateclient/versioninfo
|
||||
.testrepository
|
||||
.stestr/
|
||||
*.log
|
||||
.idea/
|
||||
.idea/
|
||||
|
4
.stestr.conf
Normal file
4
.stestr.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[DEFAULT]
|
||||
test_path=${OS_TEST_PATH:-./designateclient/tests}
|
||||
top_dir=./
|
||||
|
10
.testr.conf
10
.testr.conf
@ -1,10 +0,0 @@
|
||||
[DEFAULT]
|
||||
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
||||
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
||||
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
|
||||
OS_DEBUG=${OS_DEBUG:-1} \
|
||||
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
|
||||
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./designateclient/tests} $LISTOPT $IDOPTION
|
||||
|
||||
test_id_option=--load-list $IDFILE
|
||||
test_list_option=--list
|
@ -68,10 +68,9 @@ requestsexceptions==1.2.0
|
||||
rfc3986==0.3.1
|
||||
simplejson==3.5.1
|
||||
six==1.10.0
|
||||
stestr==1.0.0
|
||||
stevedore==1.20.0
|
||||
tempest==17.1.0
|
||||
testrepository==0.0.18
|
||||
stestr==2.0.0
|
||||
testtools==2.2.0
|
||||
traceback2==1.4.0
|
||||
unittest2==1.1.0
|
||||
|
@ -10,6 +10,6 @@ oslotest>=3.2.0 # Apache-2.0
|
||||
os-testr>=1.0.0 # Apache-2.0
|
||||
python-subunit>=1.0.0 # Apache-2.0/BSD
|
||||
requests-mock>=1.2.0 # Apache-2.0
|
||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||
stestr>=2.0.0 # Apache-2.0
|
||||
reno>=2.5.0 # Apache-2.0
|
||||
tempest>=17.1.0 # Apache-2.0
|
||||
|
@ -1,6 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
TESTRARGS=$1
|
||||
|
||||
exec 3>&1
|
||||
status=$(exec 4>&1 >&3; ( python setup.py testr --slowest --testr-args="--subunit $TESTRARGS"; echo $? >&4 ) | subunit-trace -f) && exit $status
|
10
tox.ini
10
tox.ini
@ -21,7 +21,7 @@ whitelist_externals = find
|
||||
|
||||
commands =
|
||||
find . -type f -name "*.pyc" -delete
|
||||
sh tools/pretty_tox.sh '{posargs}'
|
||||
stestr run --slowest {posargs}
|
||||
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||
|
||||
[testenv:docs]
|
||||
@ -46,7 +46,13 @@ commands = flake8
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python3
|
||||
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
||||
setenv =
|
||||
PYTHON=coverage run --source designateclient --parallel-mode
|
||||
commands =
|
||||
stestr run '{posargs}'
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
|
Loading…
Reference in New Issue
Block a user