Merge "Add convenience environment to re-record tests"
This commit is contained in:
commit
3ab76b97e0
10
tox.ini
10
tox.ini
|
@ -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}'
|
||||
|
|
Loading…
Reference in New Issue