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: Icb3886271885bfee19981a6acdda3163f3cd72f8
This commit is contained in:
parent
041f212add
commit
a3fd90b776
3
.gitignore
vendored
3
.gitignore
vendored
@ -34,10 +34,9 @@ pip-delete-this-directory.txt
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.testrepository
|
||||
.stestr/
|
||||
.coverage
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
cover
|
||||
|
||||
|
4
.stestr.conf
Normal file
4
.stestr.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[DEFAULT]
|
||||
test_path=./cloudkitty/tests
|
||||
top_dir=./
|
||||
group_regex=gabbi\.(suitemaker|driver)\.(test_[^_]+_[^_]+)
|
@ -1,5 +0,0 @@
|
||||
[DEFAULT]
|
||||
test_command=${PYTHON:-python} -m subunit.run discover -t ./ ./cloudkitty/tests $LISTOPT $IDOPTION
|
||||
test_id_option=--load-list $IDFILE
|
||||
test_list_option=--list
|
||||
group_regex=gabbi\.(suitemaker|driver)\.(test_[^_]+_[^_]+)
|
@ -10,7 +10,7 @@ kombu<4.0.0 # BSD
|
||||
ddt>=1.0.1 # MIT
|
||||
gabbi>=1.26.1 # Apache-2.0
|
||||
testscenarios>=0.4 # Apache-2.0/BSD
|
||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||
stestr>=2.0.0 # Apache-2.0
|
||||
mock>=1.2 # BSD
|
||||
sphinx>=1.6.2 # BSD
|
||||
openstackdocstheme>=1.11.0 # Apache-2.0
|
||||
|
13
tox.ini
13
tox.ini
@ -15,7 +15,7 @@ deps = -r{toxinidir}/requirements.txt
|
||||
commands =
|
||||
/usr/bin/find . -type f -name "*.py[co]" -delete
|
||||
rm -f .testrepository/times.dbm
|
||||
python setup.py testr --testr-args='{posargs}'
|
||||
stestr run {posargs}
|
||||
|
||||
[testenv:debug]
|
||||
basepython = python3
|
||||
@ -28,10 +28,15 @@ commands =
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python3
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
PYTHON=coverage run --source $project --parallel-mode
|
||||
commands =
|
||||
python setup.py testr --coverage --testr-args='{posargs}'
|
||||
coverage report
|
||||
stestr run '{posargs}'
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
coverage report
|
||||
|
||||
[testenv:genconfig]
|
||||
basepython = python3
|
||||
|
Loading…
x
Reference in New Issue
Block a user