From: Andrew Grimberg Date: Thu, 12 Oct 2023 16:56:22 +0000 (-0700) Subject: Chore: Add coverage reporting X-Git-Tag: v0.37.7~6 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F72254%2F2;p=releng%2Flftools.git Chore: Add coverage reporting Issue: RELENG-4938 Signed-off-by: Andrew Grimberg Change-Id: Ic5589cd05033ee2f6758f10a84cb235317cc55df --- diff --git a/pyproject.toml b/pyproject.toml index 89e15a0a..dd05ad6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,6 +104,7 @@ openstack = [ test = [ "pytest==5.3.5", "pytest-click==0.3", + "pytest-cov", "pytest-datafiles==2.0", "pytest-mock==2.0.0", "pytest-responses==0.4.0" diff --git a/tox.ini b/tox.ini index bca842f9..c935027a 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,10 @@ ignore_basepython_conflict = true [pytest] markers = datafiles -addopts = -p no:warnings +addopts = + -p no:warnings + --cov=lftools + --cov-report=term-missing [testenv] basepython = python3 @@ -20,6 +23,7 @@ basepython = python3 deps = pytest==5.3.5 pytest-click==0.3 + pytest-cov pytest-datafiles==2.0 pytest-mock==2.0.0 pytest-responses==0.4.0