Migrate unit tests from testr to stestr
Note the interface doesn't actually have tests yet. This is just to remove/migrate from the deprecated testr module. Change-Id: Ide277e2b2675dc147ecb7e434c595a176e2b58ee
This commit is contained in:
parent
47e50853a2
commit
fec2ad600a
|
@ -0,0 +1,3 @@
|
||||||
|
[DEFAULT]
|
||||||
|
test_path=./unit_tests
|
||||||
|
top_dir=./
|
|
@ -1,2 +1,2 @@
|
||||||
flake8>=2.2.4,<=2.4.1
|
flake8>=2.2.4
|
||||||
os-testr>=0.4.1
|
stestr>=2.2.0
|
||||||
|
|
12
tox.ini
12
tox.ini
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = pep8,py34,py35
|
envlist = pep8,py35
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
# NOTE(beisner): Avoid build/test env pollution by not enabling sitepackages.
|
# NOTE(beisner): Avoid build/test env pollution by not enabling sitepackages.
|
||||||
sitepackages = False
|
sitepackages = False
|
||||||
|
@ -11,16 +11,16 @@ 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:py34]
|
[testenv:py35]
|
||||||
basepython = python3.4
|
basepython = python3.5
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
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:py35]
|
[testenv:py3]
|
||||||
basepython = python3.5
|
basepython = python3
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
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
|
||||||
|
|
Loading…
Reference in New Issue