-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additionally: - add flake8 check (with currently many issues displayed) - check for coverage (does not work well because subprocesses are used in the test runs)
- Loading branch information
Michael Howitz
committed
Nov 7, 2017
1 parent
4bb0f90
commit c6b2ab0
Showing
6 changed files
with
54 additions
and
3 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 = plone.recipe.zope2instance | ||
|
||
[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 |
---|---|---|
|
@@ -11,4 +11,8 @@ include/ | |
lib/ | ||
parts | ||
pip-selfcheck.json | ||
/.coverage | ||
/.installed.cfg | ||
/.tox | ||
/coverage.xml | ||
/htmlcov |
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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[tox] | ||
envlist = | ||
flake8, | ||
py27, | ||
py35, | ||
py36, | ||
coverage, | ||
|
||
skip_missing_interpreters = False | ||
|
||
[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} -n install test | ||
coverage run {envbindir}/test --all {posargs:-vc} | ||
skip_install = true | ||
deps = | ||
setuptools==33.1.1 | ||
zc.buildout | ||
coverage | ||
setenv = | ||
COVERAGE_FILE=.coverage.{envname} | ||
|
||
[testenv:coverage] | ||
basepython = python2.7 | ||
deps = coverage | ||
setenv = | ||
COVERAGE_FILE=.coverage | ||
commands = | ||
coverage erase | ||
coverage combine | ||
coverage html | ||
coverage xml | ||
coverage report | ||
|
||
[testenv:flake8] | ||
basepython = python2.7 | ||
deps = flake8 | ||
commands = flake8 --doctests src setup.py |