Merge "tox: Remove references to testr"

This commit is contained in:
Zuul 2021-04-16 12:25:50 +00:00 committed by Gerrit Code Review
commit b488586910

18
tox.ini
View File

@ -5,6 +5,11 @@ ignore_basepython_conflict = true
[testenv] [testenv]
basepython = python3 basepython = python3
setenv =
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
PYTHONDONTWRITEBYTECODE=1
deps = deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
@ -13,14 +18,23 @@ commands = stestr run --slowest {posargs}
[testenv:pep8] [testenv:pep8]
deps = deps =
pre-commit>=2.6.0 # MIT pre-commit>=2.6.0 # MIT
commands = pre-commit run -a commands = pre-commit run -a
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}
[testenv:cover] [testenv:cover]
commands = python setup.py test --coverage --testr-args="{posargs}" setenv =
{[testenv]setenv}
PYTHON=coverage run --source automaton --parallel-mode
commands =
coverage erase
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:docs] [testenv:docs]
deps = deps =