Merge pull request #438 from r0fls/coverage

add coverage to tox
This commit is contained in:
Eli Uriegas 2017-02-17 07:01:14 -06:00 committed by GitHub
commit f12186d024
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 =