Migrate to stestr

testr isn't what we use anymore.

Change-Id: I4cb8b9ca41da6efd7053a5a7bacfce1654a73576
This commit is contained in:
Monty Taylor
2020-06-06 12:14:24 -05:00
parent f7f25b54ba
commit 1582c55a24
4 changed files with 14 additions and 11 deletions

View File

@@ -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 ./ ./cliff $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@@ -28,8 +28,8 @@ smmap==0.9.0
snowballstemmer==1.2.1
Sphinx==2.0.0
sphinxcontrib-websupport==1.0.1
stestr==1.0.0
stevedore==1.20.0
testrepository==0.0.18
testscenarios==0.4
testtools==2.2.0
traceback2==1.4.0

View File

@@ -3,7 +3,7 @@
# process, which may cause wedges in the gate later.
python-subunit>=1.0.0 # Apache-2.0/BSD
testrepository>=0.0.18 # Apache-2.0/BSD
stestr>=1.0.0 # Apache-2.0
testtools>=2.2.0 # MIT
mock>=2.0.0 # BSD
testscenarios>=0.4 # Apache-2.0/BSD

14
tox.ini
View File

@@ -12,8 +12,8 @@ setenv =
OS_TEST_TIMEOUT=60
distribute = False
commands =
python setup.py test --coverage --coverage-package-name=cliff --slowest --testr-args='{posargs}'
coverage report --show-missing
stestr run {posargs}
stestr slowest
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/upper-constraints.txt}
-r{toxinidir}/test-requirements.txt
@@ -53,3 +53,13 @@ deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:cover]
setenv =
{[testenv]setenv}
PYTHON=coverage run --source cliff --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml