Skip to content

Commit 887f1e9

Browse files
committed
tox: Add testenv descriptions
Change-Id: I0a7880d72248e94690a973d3a1fd33c176ed658e Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent 19c053e commit 887f1e9

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

tox.ini

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ minversion = 4.3.0
33
envlist = py3,pep8
44

55
[testenv]
6+
description =
7+
Run unit tests.
68
usedevelop = true
79
setenv =
810
OS_STDOUT_CAPTURE=1
@@ -16,13 +18,17 @@ commands =
1618
stestr run {posargs}
1719

1820
[testenv:pep8]
21+
description =
22+
Run style checks.
1923
skip_install = true
2024
deps =
2125
pre-commit
2226
commands =
2327
pre-commit run --all-files --show-diff-on-failure
2428

2529
[testenv:bandit]
30+
description =
31+
Run bandit security checks.
2632
skip_install = true
2733
deps =
2834
pre-commit
@@ -39,6 +45,8 @@ commands =
3945
stestr run {posargs}
4046

4147
[testenv:functional{,-tips,-py38,-py39,-py310,-py311,-py312}]
48+
description =
49+
Run functional tests.
4250
setenv =
4351
OS_TEST_PATH=./openstackclient/tests/functional
4452
passenv =
@@ -52,6 +60,8 @@ commands =
5260
{[testenv]commands}
5361

5462
[testenv:venv]
63+
description =
64+
Run specified command in a virtual environment with all dependencies installed.
5565
deps =
5666
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
5767
-r{toxinidir}/requirements.txt
@@ -60,22 +70,28 @@ commands =
6070
{posargs}
6171

6272
[testenv:cover]
73+
description =
74+
Run unit tests and generate coverage report.
6375
setenv =
64-
VIRTUAL_ENV={envdir}
76+
{[testenv]setenv}
6577
PYTHON=coverage run --source openstackclient --parallel-mode
6678
commands =
67-
stestr -q run {posargs}
79+
stestr run {posargs}
6880
coverage combine
6981
coverage html -d cover
7082
coverage xml -o cover/coverage.xml
7183

7284
[testenv:debug]
85+
description =
86+
Run specified tests through oslo_debug_helper, which allows use of pdb.
7387
passenv =
7488
OS_*
7589
commands =
7690
oslo_debug_helper -t openstackclient/tests {posargs}
7791

7892
[testenv:docs]
93+
description =
94+
Build documentation in HTML format.
7995
deps =
8096
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
8197
-r{toxinidir}/doc/requirements.txt
@@ -86,6 +102,8 @@ commands =
86102
whereto doc/build/html/.htaccess doc/test/redirect-tests.txt
87103

88104
[testenv:releasenotes]
105+
description =
106+
Build release note documentation in HTML format.
89107
deps =
90108
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
91109
-r{toxinidir}/doc/requirements.txt

0 commit comments

Comments
 (0)