Merge "Add convenience environment to re-record tests"

This commit is contained in:
Jenkins 2017-03-24 15:10:58 +00:00 committed by Gerrit Code Review
commit 3ab76b97e0
1 changed files with 10 additions and 0 deletions

10
tox.ini
View File

@ -10,6 +10,7 @@ setenv =
VIRTUAL_ENV={envdir}
BRANCH_NAME=master
CLIENT_NAME=python-cratonclient
BETAMAX_RECORD_MODE=none
passenv = BETAMAX_* CRATON_*
deps =
-r{toxinidir}/requirements.txt
@ -24,6 +25,15 @@ commands =
[testenv:venv]
commands = {posargs}
[testenv:rerecord]
setenv=
BETAMAX_RECORD_MODE=once
whitelist_externals =
find
commands =
find cratonclient/tests/cassettes/ -name '{posargs:*.yaml}' -delete
python setup.py test --slowest --testr-args='--concurrency=1'
[testenv:cover]
commands =
python setup.py test --coverage --testr-args='{posargs}'