diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-10-22 17:17:09 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-10-22 17:17:28 +0200 |
commit | 938a4a191da51f394907fccfd8a439ec5d61a9e2 (patch) | |
tree | d4e94230decc3a924d420a467a15f51572e19a60 | |
parent | 9d2d1c85adf1a00f8774b1e59d8b5269fe81f309 (diff) | |
download | gemato-938a4a191da51f394907fccfd8a439ec5d61a9e2.tar.gz |
tox: Enable collecting code coverage
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | tox.ini | 15 |
2 files changed, 14 insertions, 2 deletions
@@ -1,4 +1,5 @@ __pycache__ *.pyc +/.coverage /.tox /MANIFEST @@ -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 |