Skip to content

Commit fe6fbce

Browse files
committed
Tune coverage
1 parent bd9cc24 commit fe6fbce

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ matrix:
1515
env: DJANGO='django>=1.4,<1.5'
1616
install:
1717
- pip install $DJANGO pep8 --use-mirrors
18-
- pip install coveralls --use-mirrors
18+
- pip install python-coveralls --use-mirrors
1919
script:
2020
- make coverage pep8
2121
after_success:
22-
- coveralls
22+
- coveralls --c coverage.rc

coverage.rc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,22 @@ omit =
1010
djangojs/management/*
1111
djangojs/tests/*
1212

13+
[report]
14+
# Regexes for lines to exclude from consideration
15+
exclude_lines =
16+
# Have to re-enable the standard pragma
17+
pragma: no cover
18+
19+
# Don't complain about missing debug-only code:
20+
def __repr__
21+
if self\.debug
22+
23+
# Don't complain if tests don't hit defensive assertion code:
24+
raise AssertionError
25+
raise NotImplementedError
26+
27+
# Don't complain if non-runnable code isn't run:
28+
if 0:
29+
if __name__ == .__main__.:
30+
31+
ignore_errors = True

0 commit comments

Comments
 (0)