From 955ce287fb3552ce2366ca6c9e469a143fed9236 Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Thu, 12 Oct 2023 09:56:22 -0700 Subject: [PATCH] Chore: Add coverage reporting Issue: RELENG-4938 Signed-off-by: Andrew Grimberg Change-Id: Ic5589cd05033ee2f6758f10a84cb235317cc55df --- pyproject.toml | 1 + tox.ini | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.16.6