Migrate from testr to stestr

Note that the interface doesn't actually have any unit tests yet.

Change-Id: I6da11fb42c1b9568276359d2a6042d02effbd696
This commit is contained in:
Alex Kavanagh 2021-02-10 12:33:19 +00:00
parent fb9b06d5ca
commit be0926efaf
3 changed files with 12 additions and 15 deletions

3
.stestr.conf Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=./unit_tests
top_dir=./

View File

@ -1,2 +1,2 @@
flake8>=2.2.4,<=2.4.1 flake8>=2.2.4
os-testr>=0.4.1 stestr>=2.2.0

20
tox.ini
View File

@ -11,19 +11,7 @@ setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0 PYTHONHASHSEED=0
install_command = install_command =
pip install {opts} {packages} pip install {opts} {packages}
commands = ostestr {posargs} commands = stestr run {posargs}
[testenv:py27]
basepython = python2.7
deps = -r{toxinidir}/test-requirements.txt
# TODO: Need to write unit tests then remove the following command.
commands = /bin/true
[testenv:py34]
basepython = python3.4
deps = -r{toxinidir}/test-requirements.txt
# TODO: Need to write unit tests then remove the following command.
commands = /bin/true
[testenv:py35] [testenv:py35]
basepython = python3.5 basepython = python3.5
@ -43,6 +31,12 @@ deps = -r{toxinidir}/test-requirements.txt
# TODO: Need to write unit tests then remove the following command. # TODO: Need to write unit tests then remove the following command.
commands = /bin/true commands = /bin/true
[testenv:py3]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
# TODO: Need to write unit tests then remove the following command.
commands = /bin/true
[testenv:pep8] [testenv:pep8]
basepython = python3 basepython = python3
deps = -r{toxinidir}/test-requirements.txt deps = -r{toxinidir}/test-requirements.txt