-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix up tests to generate coverage reports always and combine at the end
- Loading branch information
Showing
9 changed files
with
32 additions
and
56 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
# this file has a .txt extension to avoid coverage reports | ||
# since it is not imported but rather the contents are read and exec'd | ||
foo = 1 |
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,24 +1,27 @@ | ||
[tox] | ||
skipsdist = True | ||
envlist = | ||
clean,py26,py27,py32,py33,py34,pypy,pypy3,report | ||
|
||
[testenv:clean] | ||
commands = coverage erase | ||
deps = coverage | ||
py26,py27,py32,py33,py34,pypy,pypy3,cover | ||
|
||
[testenv] | ||
commands = | ||
python setup.py dev | ||
python setup.py nosetests --with-coverage | ||
{envbindir}/python setup.py dev | ||
{envbindir}/coverage run --source={toxinidir}/pyramid {envbindir}/nosetests --xunit-file=nosetests-{envname}.xml | ||
{envbindir}/coverage xml -o coverage-{envname}.xml | ||
setenv = | ||
COVERAGE_FILE=.coverage.{envname} | ||
|
||
[testenv:report] | ||
[testenv:cover] | ||
commands = | ||
python setup.py dev | ||
python setup.py nosetests --with-xunit --with-xcoverage --cover-min-percentage=100 | ||
{envbindir}/coverage erase | ||
{envbindir}/coverage combine | ||
{envbindir}/coverage xml | ||
{envbindir}/coverage report --show-missing --fail-under=100 | ||
deps = | ||
nosexcover | ||
coverage | ||
setenv = | ||
COVERAGE_FILE=.coverage | ||
|
||
# we separate coverage into its own testenv because a) "last run wins" wrt | ||
# cobertura jenkins reporting and b) pypy and jython can't handle any | ||
# combination of versions of coverage and nosexcover that i can find. | ||
|