Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
158 additions
and
15 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 |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
.coverage | ||
.coverage.* | ||
htmlcov/ | ||
coverage.xml | ||
bin/ | ||
develop-eggs/ | ||
dist/ | ||
|
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
'pyramid', | ||
'zope.component', | ||
'zope.testrunner', | ||
'ZODB', | ||
] | ||
|
||
def _read(fname): | ||
|
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
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,21 +1,34 @@ | ||
[tox] | ||
envlist = py27,py35,py36,py37,py38,pypy,pypy3,coverage | ||
envlist = pypy,py27,py35,py36,py37,py38,pypy3,coverage,docs | ||
|
||
[testenv] | ||
# JAM: The comment and setting are cargo-culted from zope.interface. | ||
# ``usedevelop`` is required otherwise unittest complains that it | ||
# discovers a file in src/... but imports it from .tox/.../ | ||
# ``skip_install`` also basically works, but that causes the ``extras`` | ||
# not to be installed (though ``deps`` still are), and doesn't | ||
# rebuild C extensions. | ||
usedevelop = true | ||
commands = | ||
coverage run -p -m zope.testrunner --test-path=src | ||
pylint nti.transactions | ||
extras = test | ||
|
||
commands = | ||
coverage run -p -m zope.testrunner --test-path=src --auto-color --auto-progress [] # substitute with tox positional args | ||
setenv = | ||
PYTHONHASHSEED=1042466059 | ||
ZOPE_INTERFACE_STRICT_IRO=1 | ||
|
||
[testenv:coverage] | ||
basepython = | ||
python3.8 | ||
# The -i/--ignore arg may be necessary, I'm not sure. | ||
# It was cargo-culted over from zope.interface. | ||
commands = | ||
coverage run -p -m zope.testrunner --test-path=src | ||
coverage combine | ||
coverage report --fail-under=100 | ||
deps = | ||
coverage | ||
pyramid | ||
coverage report -i --fail-under=100 | ||
coverage html -i | ||
coverage xml -i | ||
depends = py27,py36,py37,py38,pypy,pypy3,docs | ||
parallel_show_output = true | ||
|
||
[testenv:docs] | ||
extras = docs | ||
basepython = python3 | ||
commands = | ||
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html |