diff --git a/.coveragerc b/.coveragerc index f4c5b83f..f0624d2e 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,7 @@ [run] branch = True -source = sanic, tests -omit = site-packages +source = sanic +omit = site-packages, sanic/utils.py [html] -directory = coverage \ No newline at end of file +directory = coverage diff --git a/tox.ini b/tox.ini index 4155e909..f14e2a1f 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =