Permalink
Browse files

setup: fix coverage configuration

Tell pytest to disable the labgrid plugin when testing labgrid, as
otherwise pytest-cov will be loaded too late to trace everything. Also
give the source path explicitly so that pytest-cov can find untested
files.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
  • Loading branch information...
jluebbe committed Feb 24, 2017
1 parent 435fc15 commit a5ac8a3d60c2c6a19d3e23a0083449c1dba15e4c
Showing with 2 additions and 3 deletions.
  1. +1 −1 .travis.yml
  2. +1 −2 setup.cfg
View
@@ -6,6 +6,6 @@ install:
- pip install --upgrade pytest pytest-mock pytest-cov coveralls
- pip install -e .
script:
- pytest -p no:labgrid --cov
- pytest --cov=labgrid
after_success:
- coveralls
View
@@ -2,8 +2,7 @@
test = pytest
[tool:pytest]
testpaths = tests labgrid
addopts = -p no:labgrid
[yapf]
dedent_closing_brackets = true
coalesce_brackets = true
[coverage:run]
source = labgrid

0 comments on commit a5ac8a3

Please sign in to comment.