Skip to content

Commit add59c3

Browse files
committed
Add .coveragerc file to fine tune coverage results
1 parent e2b37ad commit add59c3

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.coveragerc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
source = control
3+
omit = control/tests/*
4+
5+
[report]
6+
exclude_lines =
7+
# Don't complain if tests don't hit defensive assertion code:
8+
raise AssertionError
9+
raise NotImplementedError
10+
11+
# Don't complain if non-runnable code isn't run:
12+
if 0:
13+
if __name__ == .__main__.:

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ install:
2828

2929
# command to run tests
3030
script:
31-
- coverage run --source=control setup.py test
31+
- coverage run setup.py test
3232
after_success:
3333
- coveralls

0 commit comments

Comments
 (0)