From 8c62c1507e615b41a7e1d7129a74ced80b96d5ed Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Fri, 10 Aug 2018 21:46:32 +0200 Subject: [PATCH] ignore cli and test files from test coverage to get correct coverage percentage --- tox.ini | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 9fe112f95..3eb0665e9 100644 --- a/tox.ini +++ b/tox.ini @@ -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 @@ -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/*