-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tox had been failing to properly run without the -r flag (recreate the virtualenv). This fixes those issues, and fixes up the coverage issues that exist.
- Loading branch information
Showing
5 changed files
with
117 additions
and
33 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 |
---|---|---|
@@ -1,24 +1,30 @@ | ||
WebOb.egg-info | ||
*$py.class | ||
*,cover | ||
*.egg | ||
*.pyc | ||
*.pyo | ||
*.swp | ||
*~ | ||
TEST* | ||
testenv | ||
docs/_build/* | ||
dist/ | ||
build/ | ||
.coverage | ||
*.egg | ||
glob:_coverage | ||
Session.vim | ||
*_coverage/** | ||
*,cover | ||
*_fixt.py | ||
*$py.class | ||
*~ | ||
.*.swp | ||
.coverage | ||
.coverage.* | ||
.tox/ | ||
Session.vim | ||
TEST* | ||
WebOb.egg-info | ||
__pycache__/ | ||
_website/ | ||
build/ | ||
coverage-*.xml | ||
coverage.xml | ||
nosetests.xml | ||
coverage.xml | ||
dist/ | ||
docs/_build/* | ||
env*/ | ||
_website/ | ||
__pycache__/ | ||
glob:_coverage | ||
nosetests-*.xml | ||
nosetests.xml | ||
nosetests.xml | ||
testenv |
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,17 +1,51 @@ | ||
[tox] | ||
envlist = | ||
py26,py27,py32,py33,py34,pypy,cover | ||
py26,py27,py32,py33,py34,pypy,pypy3, | ||
{py2,py3}-cover,coverage | ||
|
||
[testenv] | ||
# Most of these are defaults but if you specify any you can't fall back | ||
# to defaults for others. | ||
basepython = | ||
py26: python2.6 | ||
py27: python2.7 | ||
py32: python3.2 | ||
py33: python3.3 | ||
py34: python3.4 | ||
pypy: pypy | ||
pypy3: pypy3 | ||
py2: python2.7 | ||
py3: python3.4 | ||
|
||
commands = | ||
python setup.py dev | ||
python setup.py nosetests | ||
pip install webob[testing] | ||
nosetests --with-xunit --xunit-file=nosetests-{envname}.xml {posargs:} | ||
|
||
[testenv:cover] | ||
basepython = | ||
python2.6 | ||
[testenv:py2-cover] | ||
commands = | ||
python setup.py dev | ||
python setup.py nosetests --with-xunit --with-xcoverage --cover-min-percentage=100 | ||
pip install webob[testing] | ||
coverage run --source=webob {envbindir}/nosetests | ||
coverage xml -o coverage-py2.xml | ||
setenv = | ||
COVERAGE_FILE=.coverage.py2 | ||
|
||
[testenv:py3-cover] | ||
commands = | ||
pip install webob[testing] | ||
coverage run --source=webob {envbindir}/nosetests | ||
coverage xml -o coverage-py3.xml | ||
setenv = | ||
COVERAGE_FILE=.coverage.py3 | ||
|
||
[testenv:coverage] | ||
basepython = python3.4 | ||
commands = | ||
coverage erase | ||
coverage combine | ||
coverage xml | ||
coverage report --show-missing --fail-under=100 | ||
deps = | ||
nosexcover | ||
coverage | ||
setenv = | ||
COVERAGE_FILE=.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