add coverage to tox

This commit is contained in:
Raphael Deem 2017-02-15 15:20:43 -08:00
parent 874698b93f
commit 4fa568ce8a
2 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
[run]
branch = True
source = sanic, tests
omit = site-packages
source = sanic
omit = site-packages, sanic/utils.py
[html]
directory = coverage

View File

@ -14,10 +14,13 @@ deps =
aiohttp
pytest
beautifulsoup4
coverage
commands =
pytest tests {posargs}
coverage erase
coverage run -m sanic.sanic
coverage report
[testenv:flake8]
deps =