Skip to content

Commit

Permalink
Add test coverage tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Dec 27, 2018
1 parent 35ab38b commit 902339d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .coveragerc
@@ -0,0 +1,11 @@
[run]
source = z3c.table

[report]
precision = 2
exclude_lines =
pragma: no cover
if __name__ == '__main__':
raise NotImplementedError
self.fail
raise AssertionError
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
*.egg-info/
*.py[co]
.coverage
.installed.cfg
.tox/
bin/
Expand Down
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -6,9 +6,12 @@ python:
- pypy
install:
- pip install -U pip setuptools
- pip install -U coverage coveralls
- pip install -U -e .[test]
script:
- zope-testrunner --test-path=src
- coverage run -m zope.testrunner --test-path=src
after_success:
- coveralls
notifications:
email: false
cache: pip
11 changes: 10 additions & 1 deletion tox.ini
@@ -1,8 +1,17 @@
[tox]
envlist = py27,py35,py36,pypy
envlist = py27,py35,py36,pypy,coverage

[testenv]
usedevelop = true
commands =
zope-testrunner --test-path=src []
extras = test

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

0 comments on commit 902339d

Please sign in to comment.