Skip to content

Commit

Permalink
Bring back coverage to 100 %.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Oct 5, 2018
1 parent e1696c4 commit cfaa1fa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.coverage
.tox
coverage
coverage.xml
src/*.egg-info
__pycache__
*.pyc
Expand Down
22 changes: 13 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,25 @@ envlist =
py27,py34,py35,py36,py37,pypy,pypy3,coverage,docs

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

[testenv:coverage]
usedevelop = true
basepython =
python3.7
setenv =
COVERAGE_FILE=.coverage
skip_install = true
commands =
coverage run -m zope.testrunner --test-path=src []
coverage report --fail-under=100
deps =
{[testenv]deps}
coverage
coverage erase
coverage combine
coverage html
coverage xml
coverage report --fail-under=100 --show-missing

[testenv:docs]
basepython =
Expand Down

0 comments on commit cfaa1fa

Please sign in to comment.