Reuse test commands in cover target
... to maintain the commands in a single place. Also install coverage only when needed. Change-Id: Ie9a776be0e2f2d54bee614db74379a297c113d13 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
1 parent
1b15e30a6d
commit
909671f44c
2 files changed
+4
-2
No files matched your search
@@ -2,7 +2,6 @@ hacking>=6.1.0,<6.2.0 # Apache-2.0
|
||||
mypy>=0.761 # MIT
|
||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||
oslotest>=3.2.0 # Apache-2.0
|
||||
coverage>=5.0 # Apache-2.0
|
||||
stestr>=2.0.0 # Apache-2.0
|
||||
|
||||
# Bandit security code scanner
|
||||
|
||||
@@ -50,9 +50,12 @@ commands =
|
||||
[testenv:cover]
|
||||
setenv =
|
||||
PYTHON=coverage run --source oslo_context --parallel-mode
|
||||
deps =
|
||||
{[testenv]deps}
|
||||
coverage>=5.0 # Apache-2.0
|
||||
commands =
|
||||
coverage erase
|
||||
stestr run {posargs}
|
||||
{[testenv]commands}
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
|
||||
Reference in new issue
Block a user