Skip to content

Commit

Permalink
ignore cli and test files from test coverage to get correct coverage …
Browse files Browse the repository at this point in the history
…percentage (#361)
  • Loading branch information
rytilahti authored Aug 10, 2018
1 parent 99b7067 commit e6220e9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ deps=
pytest-cov
voluptuous
commands=
py.test --cov miio
py.test --cov --cov-config=tox.ini miio

[testenv:docs]
basepython=python
Expand All @@ -40,3 +40,10 @@ max-line-length = 100
[testenv:typing]
deps=mypy
commands=mypy --ignore-missing-imports miio

[coverage:run]
source = miio
branch = True
omit =
miio/*cli.py
miio/tests/*

0 comments on commit e6220e9

Please sign in to comment.