Skip to content

Commit

Permalink
coveralls: exclude protocols via .coveragerc and use it for travis
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Emantor committed Feb 28, 2017
1 parent 71c65b0 commit 13907b5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -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__.:
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.