Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make tox and Travis CI actually run the tests - Make the tests actually pass on Python 3 - Make the code actually support Python 3 like setup.py claims it already does - Tell tox and travis and setup.py about Pythons 3.4 and 3.5 - Add tox -e coverage2 and tox -e coverage3
- Loading branch information
Showing
9 changed files
with
78 additions
and
40 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,2 @@ | ||
[run] | ||
source = z3c.batching |
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 |
---|---|---|
|
@@ -7,3 +7,5 @@ __pycache__/ | |
build/ | ||
dist/ | ||
*.egg-info/ | ||
.tox/ | ||
.coverage |
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
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 = | ||
py26,py27,py33 | ||
envlist = py26,py27,py33,py34,py35,pypy | ||
|
||
[testenv] | ||
deps = | ||
zope.testrunner | ||
commands = | ||
zope-testrunner --test-path=src {posargs:-pvc} | ||
|
||
[testenv:coverage2] | ||
usedevelop = true | ||
basepython = python2 | ||
deps = | ||
{[testenv]deps} | ||
coverage | ||
commands = | ||
python setup.py test -q | ||
# without explicit deps, setup.py test will download a bunch of eggs into $PWD | ||
# (and it seems I can't use zope.dottedname[testing] here, so forget DRY) | ||
coverage run -m zope.testrunner --test-path=src {posargs:-pvc} | ||
coverage report -m | ||
|
||
[testenv:coverage3] | ||
usedevelop = true | ||
basepython = python3 | ||
deps = | ||
zope.interface | ||
zope.schema | ||
{[testenv]deps} | ||
coverage | ||
commands = | ||
coverage run -m zope.testrunner --test-path=src {posargs:-pvc} | ||
coverage report -m |