Skip to content

Commit

Permalink
Compute coverage via tox, too. This was missing in #64.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Sep 7, 2017
1 parent 6a3c502 commit 0cc494b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.coverage
*.pyc
*.mo
__pycache__
Expand Down
13 changes: 12 additions & 1 deletion tox.ini
@@ -1,10 +1,21 @@
[tox]
envlist =
py27,py33,py34,py35
py27,py33,py34,py35,coverage

[testenv]
commands =
zope-testrunner --test-path=src {posargs:-pvc}
deps =
.[test]
zope.testrunner

[testenv:coverage]
usedevelop = true
basepython =
python2.7
commands =
coverage run -m zope.testrunner --test-path=src []
coverage report --fail-under=96
deps =
{[testenv]deps}
coverage

0 comments on commit 0cc494b

Please sign in to comment.