Skip to content

Commit e6220e9

Browse files
authored
ignore cli and test files from test coverage to get correct coverage percentage (#361)
1 parent 99b7067 commit e6220e9

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tox.ini

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ deps=
1313
pytest-cov
1414
voluptuous
1515
commands=
16-
py.test --cov miio
16+
py.test --cov --cov-config=tox.ini miio
1717

1818
[testenv:docs]
1919
basepython=python
@@ -40,3 +40,10 @@ max-line-length = 100
4040
[testenv:typing]
4141
deps=mypy
4242
commands=mypy --ignore-missing-imports miio
43+
44+
[coverage:run]
45+
source = miio
46+
branch = True
47+
omit =
48+
miio/*cli.py
49+
miio/tests/*

0 commit comments

Comments
 (0)