@@ -26,6 +26,20 @@ envlist =
26
26
27
27
28
28
[testenv]
29
+ description =
30
+ run the tests
31
+ coverage: collecting coverage
32
+ exceptiongroup: against `exceptiongroup`
33
+ nobyte: in no-bytecode mode
34
+ lsof: with `--lsof` pytest CLI option
35
+ numpy: against `numpy`
36
+ pexpect: against `pexpect`
37
+ pluggymain: against the bleeding edge `pluggy` from Git
38
+ pylib: against `py` lib
39
+ unittestextras: against the unit test extras
40
+ xdist: with pytest in parallel mode
41
+ under `{basepython}`
42
+ doctesting: including doctests
29
43
commands =
30
44
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:{env:_PYTEST_TOX_DEFAULT_POSARGS:}}
31
45
doctesting: {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest
72
86
{env:_PYTEST_TOX_EXTRA_DEP:}
73
87
74
88
[testenv:linting]
89
+ description =
90
+ run pre-commit-defined linters under `{basepython}`
75
91
skip_install = True
76
92
basepython = python3
77
93
deps = pre-commit>=2.9.3
@@ -81,6 +97,9 @@ setenv =
81
97
PYTHONWARNDEFAULTENCODING =
82
98
83
99
[testenv:docs]
100
+ description =
101
+ build the documentation site under \
102
+ `{toxinidir}{/}doc{/}en{/}_build{/}html` with `{basepython}`
84
103
basepython = python3.12 # sync with rtd to get errors
85
104
usedevelop = True
86
105
deps =
@@ -102,6 +121,8 @@ setenv =
102
121
PYTHONWARNDEFAULTENCODING =
103
122
104
123
[testenv:docs-checklinks]
124
+ description =
125
+ check the links in the documentation with `{basepython}`
105
126
basepython = python3
106
127
usedevelop = True
107
128
changedir = doc/en
@@ -113,6 +134,8 @@ setenv =
113
134
PYTHONWARNDEFAULTENCODING =
114
135
115
136
[testenv:regen]
137
+ description =
138
+ regenerate documentation examples under `{basepython}`
116
139
changedir = doc/en
117
140
basepython = python3
118
141
passenv =
@@ -130,6 +153,8 @@ setenv =
130
153
PYTHONWARNDEFAULTENCODING =
131
154
132
155
[testenv:plugins]
156
+ description =
157
+ run reverse dependency testing against pytest plugins under `{basepython}`
133
158
# use latest versions of all plugins, including pre-releases
134
159
pip_pre =true
135
160
# use latest pip to get new dependency resolver (#7783)
@@ -154,6 +179,8 @@ commands =
154
179
pytest simple_integration.py --force-sugar --flakes
155
180
156
181
[testenv:py38-freeze]
182
+ description =
183
+ test pytest frozen with `pyinstaller` under `{basepython}`
157
184
changedir = testing/freeze
158
185
deps =
159
186
pyinstaller
0 commit comments