Merge "Replace testr with pytest"

This commit is contained in:
Zuul 2020-09-18 12:13:40 +00:00 committed by Gerrit Code Review
commit 798c970240
2 changed files with 6 additions and 8 deletions

View File

@ -1,9 +1,4 @@
coverage>=3.6
fixtures>=3.0.0 fixtures>=3.0.0
python-subunit
testrepository>=0.0.17
testscenarios>=0.4
testtools>=0.9.36,!=1.2.0
mock>=1.0 mock>=1.0
# queries use pytest # queries use pytest
pytest pytest

View File

@ -14,11 +14,11 @@ setenv =
PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
deps = -r{toxinidir}/requirements.txt deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs} tests.unit' commands = pytest elastic_recheck/tests/unit
[testenv:functional] [testenv:functional]
basepython = python3 basepython = python3
commands = python setup.py testr --slowest --testr-args='{posargs} tests.functional' commands = pytest elastic_recheck/tests/functional
[testenv:queries] [testenv:queries]
basepython = python3 basepython = python3
@ -31,7 +31,10 @@ commands = {posargs}
[testenv:cover] [testenv:cover]
basepython = python3 basepython = python3
commands = python setup.py test --coverage --coverage-package-name='elastic_recheck' --testr-args='{posargs} tests.unit' deps =
{[testenv]deps}
pytest-cov
commands = pytest --cov=elastic_recheck {posargs} elastic_recheck/tests/unit
[testenv:run] [testenv:run]
basepython = python3 basepython = python3