-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test coverage computation and coveralls support.
- Loading branch information
Michael Howitz
committed
Apr 6, 2018
1 parent
dc14266
commit eec4d7c
Showing
4 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[run] | ||
branch = True | ||
source = src | ||
|
||
[report] | ||
precision = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
*.egg-info | ||
*.py? | ||
.Python | ||
.coverage | ||
.coverage.* | ||
.installed*.cfg | ||
.mr.developer.cfg | ||
.tox | ||
/bin/ | ||
/build/ | ||
/develop/ | ||
/develop-eggs/ | ||
/develop/ | ||
/dist/ | ||
/docs/.build/ | ||
/docs/_build/ | ||
/eggs/ | ||
/etc/ | ||
/htmlcov/ | ||
/include/ | ||
/lib/ | ||
/log/ | ||
/parts/ | ||
/var/ | ||
/docs/_build/ | ||
/docs/.build/ | ||
coverage.xml | ||
pip-selfcheck.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,28 @@ | ||
[tox] | ||
envlist = py27,py34,py35,py36 | ||
envlist = py27,py34,py35,py36,coverage-report | ||
|
||
[testenv] | ||
commands = | ||
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} bootstrap | ||
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test alltests | ||
{envbindir}/alltests [] | ||
coverage run {envbindir}/alltests [] | ||
skip_install = true | ||
deps = | ||
coverage | ||
setuptools==33.1.1 | ||
zc.buildout | ||
setenv = | ||
COVERAGE_FILE=.coverage.{envname} | ||
|
||
[testenv:coverage-report] | ||
basepython = python3.6 | ||
deps = coverage | ||
setenv = | ||
COVERAGE_FILE=.coverage | ||
skip_install = true | ||
commands = | ||
coverage erase | ||
coverage combine | ||
coverage html -i | ||
coverage xml -i | ||
coverage report -i --fail-under=79 |