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] [run]
branch = True branch = True
source = sanic, tests source = sanic
omit = site-packages omit = site-packages, sanic/utils.py
[html] [html]
directory = coverage directory = coverage

View File

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