Permalink
Browse files

coveralls: exclude protocols via .coveragerc and use it for travis

All protocol classes are abstract interfaces which are do not need to be covered
by tests. Exclude them in .coveragerc and use it during the travis run.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  • Loading branch information...
Emantor committed Feb 28, 2017
1 parent 71c65b0 commit 13907b502fa774cb481cf3b0617ffd1bdecf0f2f
Showing with 11 additions and 1 deletion.
  1. +10 −0 .coveragerc
  2. +1 −1 .travis.yml
View
@@ -0,0 +1,10 @@
[report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
View
@@ -7,6 +7,6 @@ install:
- pip install -r dev-requirements.txt
- pip install -e .
script:
- pytest --cov=labgrid
- pytest --cov-config .coveragerc --cov=labgrid
after_success:
- coveralls

0 comments on commit 13907b5

Please sign in to comment.