Skip to content

Commit e14d791

Browse files
committed
Adding coveralls integration
Run coverage with all tests and send results to coveralls.io.
1 parent 2c3bdfe commit e14d791

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

Diff for: .coveragerc

+7
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__

Diff for: .gitignore

+5
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

Diff for: .travis.yml

+3
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

Diff for: tox.ini

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ deps = keyring
99
django
1010
webtest
1111
nose
12+
coverage>=3.6,<3.99
1213
unittest2
13-
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)