Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

Commit

Permalink
Add tox -e coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Apr 24, 2017
1 parent e5d8d3b commit cedb3fa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
source = z3c.coverage
# branch = True
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ build/
dist/
__pycache__/
*.py[co]
.coverage
14 changes: 12 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
envlist = py27,py33,py34,py35,py36,pypy,pypy3

[testenv]
deps = zope.testrunner
zope.testing
deps =
zope.testrunner
zope.testing
commands = zope-testrunner --test-path=src

[testenv:coverage]
usedevelop = true
deps =
{[testenv]deps}
coverage
commands =
coverage run -m zope.testrunner --test-path=src
coverage report

0 comments on commit cedb3fa

Please sign in to comment.