From ebbec0dacd7a237d0e52e2a6e69afce7b70cdd0e Mon Sep 17 00:00:00 2001 From: juga0 <juga@riseup.net> Date: Mon, 9 Apr 2018 14:55:15 +0000 Subject: [PATCH] Use coverage instead of pytest-cov, and tell coverage to don't include __init__.py --- .coveragerc | 3 +-- tox.ini | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.coveragerc b/.coveragerc index 067f27cb..c6303cad 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,3 +1,2 @@ [run] -omit = tests/* - *__init__* +omit = */__init__.py diff --git a/tox.ini b/tox.ini index 9746e874..19adeafb 100644 --- a/tox.ini +++ b/tox.ini @@ -31,7 +31,8 @@ commands= # passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH deps = .[test] commands = - py.test -svx --cov --cov-report= + coverage run --rcfile={toxinidir}/.coveragerc --source=sbws -m pytest -svx {toxinidir}/tests + [testenv:doc] deps = .[doc] -- GitLab