Skip to content

Commit

Permalink
Merge pull request #8 from Emantor/fix/coverage_setup
Browse files Browse the repository at this point in the history
coveralls: exclude lines via .coveragerc and use it for travis
  • Loading branch information
jluebbe committed Feb 28, 2017
2 parents 71c65b0 + 13907b5 commit e077cf5
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 e077cf5

Please sign in to comment.