Install coverage only when needed

The coverage library is used only in the "cover" target.

Change-Id: I5e853bb2dfe6be1527047c7a2bcf8af98e47c7b1
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-10-03 23:33:20 +09:00
parent 1353e99c51
commit c87b57ddb6
2 changed files with 3 additions and 1 deletions

View File

@@ -1,4 +1,3 @@
coverage>=3.6 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
betamax>=0.7.0 # Apache-2.0

View File

@@ -22,6 +22,9 @@ commands =
commands = {posargs}
[testenv:cover]
deps =
{[testenv]deps}
coverage>=3.6 # Apache-2.0
setenv =
PYTHON=coverage run --source $project --parallel-mode
commands =