Skip to content

Commit a4bd21a

Browse files
author
Jon Wayne Parrott
committed
Combining appengine tests into coverage
1 parent 6a9308a commit a4bd21a

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

tox.ini

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,49 @@ basedeps = keyring
1313
deps = {[testenv]basedeps}
1414
django
1515
setenv =
16-
PYTHONPATH=../google_appengine
1716
pypy: with_gmp=no
1817
commands = nosetests --ignore-files=test_appengine\.py {posargs}
1918

20-
[testenv:cover]
19+
[coverbase]
2120
basepython = python2.7
2221
commands =
23-
nosetests --with-xunit --with-xcoverage --cover-package=oauth2client --nocapture --cover-erase --cover-tests --cover-branches --ignore-files=test_appengine\.py --cover-min-percentage=60
22+
nosetests \
23+
--with-coverage \
24+
--cover-package=oauth2client \
25+
--cover-erase \
26+
--cover-tests \
27+
--cover-branches \
28+
--ignore-files=test_appengine\.py
29+
nosetests \
30+
--with-coverage \
31+
--cover-package=oauth2client.appengine \
32+
--with-gae \
33+
--cover-tests \
34+
--cover-branches \
35+
--gae-application=tests/data \
36+
--gae-lib-root={env:GAE_PYTHONPATH} \
37+
--logging-level=INFO \
38+
tests/test_appengine.py
2439
deps = {[testenv]deps}
2540
coverage
26-
nosexcover
41+
nosegae
42+
43+
[testenv:cover]
44+
basepython = {[coverbase]basepython}
45+
commands =
46+
{[coverbase]commands}
47+
coverage report --show-missing --fail-under 80
48+
deps =
49+
{[coverbase]deps}
2750

2851
[testenv:coveralls]
29-
basepython = {[testenv:cover]basepython}
52+
basepython = {[coverbase]basepython}
3053
commands =
31-
{[testenv:cover]commands}
54+
{[coverbase]commands}
55+
coverage report --show-missing
3256
coveralls
3357
deps =
34-
{[testenv:cover]deps}
58+
{[coverbase]deps}
3559
coveralls
3660
passenv = {[testenv:system-tests]passenv}
3761

@@ -56,7 +80,7 @@ basepython = python2.7
5680
deps = {[testenv]basedeps}
5781
nosegae
5882
commands =
59-
nosetests --with-gae --gae-application=tests/data --logging-level=INFO {posargs} tests/test_appengine.py
83+
nosetests --with-gae --gae-application=tests/data --logging-level=INFO tests/test_appengine.py
6084
setenv:
6185
PYTHONPATH={env:GAE_PYTHONPATH:}
6286

0 commit comments

Comments
 (0)