@@ -3,6 +3,8 @@ minversion = 4.3.0
33envlist = py3,pep8
44
55[testenv]
6+ description =
7+ Run unit tests.
68usedevelop = true
79setenv =
810 OS_STDOUT_CAPTURE =1
@@ -16,13 +18,17 @@ commands =
1618 stestr run {posargs}
1719
1820[testenv:pep8]
21+ description =
22+ Run style checks.
1923skip_install = true
2024deps =
2125 pre-commit
2226commands =
2327 pre-commit run --all-files --show-diff-on-failure
2428
2529[testenv:bandit]
30+ description =
31+ Run bandit security checks.
2632skip_install = true
2733deps =
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.
4250setenv =
4351 OS_TEST_PATH =./openstackclient/tests/functional
4452passenv =
@@ -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.
5565deps =
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.
6375setenv =
64- VIRTUAL_ENV ={envdir }
76+ {[testenv]setenv }
6577 PYTHON =coverage run --source openstackclient --parallel-mode
6678commands =
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.
7387passenv =
7488 OS_*
7589commands =
7690 oslo_debug_helper -t openstackclient/tests {posargs}
7791
7892[testenv:docs]
93+ description =
94+ Build documentation in HTML format.
7995deps =
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.
89107deps =
90108 -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
91109 -r{toxinidir}/doc/requirements.txt
0 commit comments