Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Combining appengine tests into coverage #287

Merged
merged 1 commit into from
Aug 25, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 32 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,49 @@ basedeps = keyring
deps = {[testenv]basedeps}
django
setenv =
PYTHONPATH=../google_appengine
pypy: with_gmp=no
commands = nosetests --ignore-files=test_appengine\.py {posargs}

[testenv:cover]
[coverbase]

This comment was marked as spam.

This comment was marked as spam.

basepython = python2.7
commands =
nosetests --with-xunit --with-xcoverage --cover-package=oauth2client --nocapture --cover-erase --cover-tests --cover-branches --ignore-files=test_appengine\.py --cover-min-percentage=60
nosetests \

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

--with-coverage \
--cover-package=oauth2client \
--cover-erase \
--cover-tests \
--cover-branches \
--ignore-files=test_appengine\.py
nosetests \
--with-coverage \
--cover-package=oauth2client.appengine \
--with-gae \
--cover-tests \
--cover-branches \
--gae-application=tests/data \
--gae-lib-root={env:GAE_PYTHONPATH} \
--logging-level=INFO \
tests/test_appengine.py
deps = {[testenv]deps}
coverage
nosexcover
nosegae

[testenv:cover]
basepython = {[coverbase]basepython}
commands =
{[coverbase]commands}
coverage report --show-missing --fail-under 80
deps =
{[coverbase]deps}

[testenv:coveralls]
basepython = {[testenv:cover]basepython}
basepython = {[coverbase]basepython}
commands =
{[testenv:cover]commands}
{[coverbase]commands}
coverage report --show-missing
coveralls
deps =
{[testenv:cover]deps}
{[coverbase]deps}
coveralls
passenv = {[testenv:system-tests]passenv}

Expand All @@ -56,7 +80,7 @@ basepython = python2.7
deps = {[testenv]basedeps}
nosegae
commands =
nosetests --with-gae --gae-application=tests/data --logging-level=INFO {posargs} tests/test_appengine.py
nosetests --with-gae --gae-application=tests/data --logging-level=INFO tests/test_appengine.py

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

setenv:
PYTHONPATH={env:GAE_PYTHONPATH:}

Expand Down