From 3554ad53e24c571465584a53104fd643d4e91972 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Fri, 17 Sep 2021 15:17:30 +0100 Subject: [PATCH] Coverage to omit the test files Coverage should not include the test files as part the report. Signed-off-by: Lucas Alvares Gomes Change-Id: I77cafcc54b81587193d1a74024a565d7094bac40 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 9406555e..b1ad8387 100644 --- a/tox.ini +++ b/tox.ini @@ -34,7 +34,7 @@ setenv = commands = stestr run {posargs} coverage combine - coverage html -d cover + coverage html -d cover --omit='*tests*' coverage xml -o cover/coverage.xml [testenv:docs]