Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c926756

Browse files
Merge pull request googleapis#79 from pferate/coveralls
Adding coveralls integration
2 parents 291925c + e14d791 commit c926756

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

.coveragerc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[report]
2+
omit = */samples/*
3+
exclude_lines =
4+
# Re-enable the standard pragma
5+
pragma: NO COVER
6+
# Ignore debug-only repr
7+
def __repr__

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ dist/
66

77
# Test files
88
.tox/
9+
10+
# Coverage files
11+
.coverage
12+
coverage.xml
13+
nosetests.xml

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ env:
1010
- TOX_ENV=py34
1111
install:
1212
- pip install tox
13+
- pip install coveralls
1314
script:
1415
- tox -e $TOX_ENV
16+
after_success:
17+
coveralls
1518
notifications:
1619
email: false

tox.ini

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,6 @@ deps = keyring
99
django
1010
webtest
1111
nose
12+
coverage>=3.6,<3.99
1213
unittest2
13-
setenv = PYTHONPATH=../google_appengine
14-
15-
[testenv:py26]
16-
commands = nosetests --ignore-files=test_oauth2client_appengine\.py
17-
18-
[testenv:py27]
19-
commands = nosetests
20-
21-
[testenv:py33]
22-
commands = nosetests
23-
24-
[testenv:py34]
25-
commands = nosetests
14+
commands = nosetests --with-coverage --cover-package=googleapiclient --nocapture --cover-erase --cover-tests --cover-branches --cover-min-percentage=85

0 commit comments

Comments
 (0)