Skip to content

Commit 9749e5c

Browse files
committed
DOC: mention CI and BUILD_NUMBER in pytest -h
Closes pytest-dev#12577
1 parent e19ad1f commit 9749e5c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/_pytest/helpconfig.py

+5
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ def showhelp(config: Config) -> None:
212212
tw.line()
213213
tw.line("Environment variables:")
214214
vars = [
215+
(
216+
"CI",
217+
"When truthy, pytest knows it is running in a CI process and does not truncate summary info",
218+
),
219+
("BUILD_NUMBER", "equivalent to CI"),
215220
("PYTEST_ADDOPTS", "Extra command line options"),
216221
("PYTEST_PLUGINS", "Comma-separated plugins to load during startup"),
217222
("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "Set to disable plugin auto-loading"),

0 commit comments

Comments
 (0)