From 4fa568ce8a867d0aa0ec66f2c03efa588a4b3ddf Mon Sep 17 00:00:00 2001 From: Raphael Deem Date: Wed, 15 Feb 2017 15:20:43 -0800 Subject: [PATCH] add coverage to tox --- .coveragerc | 6 +++--- tox.ini | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) 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 =