2016-10-15 10:56:34 +01:00
|
|
|
[tox]
|
|
|
|
|
2016-12-26 02:55:25 +00:00
|
|
|
envlist = py35, py36, flake8, report
|
2016-10-15 10:56:34 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
|
|
|
|
deps =
|
|
|
|
aiohttp
|
|
|
|
pytest
|
|
|
|
coverage
|
|
|
|
|
|
|
|
commands =
|
2016-12-24 22:06:53 +00:00
|
|
|
coverage run -m pytest -v tests {posargs}
|
2016-10-15 10:56:34 +01:00
|
|
|
mv .coverage .coverage.{envname}
|
|
|
|
|
|
|
|
whitelist_externals =
|
|
|
|
coverage
|
|
|
|
mv
|
|
|
|
echo
|
|
|
|
|
2016-12-24 22:06:53 +00:00
|
|
|
[testenv:flake8]
|
|
|
|
deps =
|
|
|
|
flake8
|
|
|
|
|
|
|
|
commands =
|
|
|
|
flake8 sanic
|
|
|
|
|
2016-10-15 10:56:34 +01:00
|
|
|
[testenv:report]
|
2016-12-26 02:55:25 +00:00
|
|
|
deps=
|
|
|
|
coverage
|
2016-10-15 10:56:34 +01:00
|
|
|
|
|
|
|
commands =
|
|
|
|
coverage combine
|
|
|
|
coverage report
|
|
|
|
coverage html
|
|
|
|
echo "Open file://{toxinidir}/coverage/index.html"
|