From 938a4a191da51f394907fccfd8a439ec5d61a9e2 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 22 Oct 2017 17:17:09 +0200 Subject: tox: Enable collecting code coverage --- .gitignore | 1 + tox.ini | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 211b215..5d32320 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ __pycache__ *.pyc +/.coverage /.tox /MANIFEST diff --git a/tox.ini b/tox.ini index 1f444a0..1979b09 100644 --- a/tox.ini +++ b/tox.ini @@ -1,33 +1,44 @@ [tox] -envlist = py27,py34,py35,py36,pypy,pypy3 +envlist = begin,py27,py34,py35,py36,pypy,pypy3 + +[testenv:begin] +deps = + coverage +commands = coverage erase [testenv:py27] deps = + coverage pyblake2 pysha3 [testenv:py34] deps = + coverage pyblake2 pysha3 [testenv:py35] deps = + coverage pyblake2 pysha3 [testenv:py36] # blake2 & sha3 are built-in deps = + coverage [testenv:pypy] deps = + coverage pyblake2 pysha3 [testenv:pypy3] # note: pyblake2, pysha3 don't build deps = + coverage [testenv] -commands = python -m unittest discover -v +commands = coverage run -m unittest discover -v -- cgit v1.2.3