From 9d5ab7dbccb62b42778a40d5602f035588a71b3f Mon Sep 17 00:00:00 2001 From: Jakub Warmuz Date: Thu, 27 Nov 2014 20:30:56 +0100 Subject: [PATCH] Test coverage --- setup.py | 1 + tox.ini | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 02a548f3e..93e22b4d9 100755 --- a/setup.py +++ b/setup.py @@ -15,6 +15,7 @@ install_requires = [ testing_extras = [ 'coverage', 'nose', + 'nosexcover', 'pylint', 'tox', ] diff --git a/tox.ini b/tox.ini index 7a7db6a7c..114c3868b 100644 --- a/tox.ini +++ b/tox.ini @@ -4,13 +4,18 @@ # and then run "tox" from this directory. [tox] -envlist = py26,py27,lint +envlist = py26,py27,cover,lint [testenv] commands = python setup.py dev python setup.py test -q # -q does not suppress errors +[testenv:cover] +commands = + python setup.py dev + python setup.py nosetests --with-xunit --with-xcoverage --cover-min-percentage=100 + [testenv:lint] commands = python setup.py dev