You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added support for displaying test session progress in the terminal tab using the `OSC 9;4; <https://conemu.github.io/en/AnsiEscapeCodes.html#ConEmu_specific_OSC>`_ ANSI sequence.
2
+
When pytest runs in a supported terminal emulator like ConEmu, Gnome Terminal, Ptyxis, Windows Terminal, Kitty or Ghostty,
3
+
you'll see the progress in the terminal tab or window,
4
+
allowing you to monitor pytest's progress at a glance.
5
+
6
+
This feature is automatically enabled when running in a TTY. It is implemented as an internal plugin. If needed, it can be disabled as follows:
7
+
- On a user level, using ``-p no:terminalprogress`` on the command line or via an environment variable ``PYTEST_ADDOPTS='-p no:terminalprogress'``.
8
+
- On a project configuration level, using ``addopts = "-p no:terminalprogress"``.
Copy file name to clipboardExpand all lines: doc/en/reference/reference.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1165,11 +1165,11 @@ Environment variables that can be used to change pytest's behavior.
1165
1165
1166
1166
.. envvar:: CI
1167
1167
1168
-
When set (regardless of value), pytest acknowledges that is running in a CI process. Alternative to ``BUILD_NUMBER`` variable. See also :ref:`ci-pipelines`.
1168
+
When set to a non-empty value, pytest acknowledges that is running in a CI process. See also :ref:`ci-pipelines`.
1169
1169
1170
1170
.. envvar:: BUILD_NUMBER
1171
1171
1172
-
When set (regardless of value), pytest acknowledges that is running in a CI process. Alternative to CI variable. See also :ref:`ci-pipelines`.
1172
+
When set to a non-empty value, pytest acknowledges that is running in a CI process. Alternative to :envvar:`CI`. See also :ref:`ci-pipelines`.
1173
1173
1174
1174
.. envvar:: PYTEST_ADDOPTS
1175
1175
@@ -2412,7 +2412,7 @@ All the command-line flags can be obtained by running ``pytest --help``::
2412
2412
Plugins that must be present for pytest to run
2413
2413
2414
2414
Environment variables:
2415
-
CI When set (regardless of value), pytest knows it is running in a CI process and does not truncate summary info
2415
+
CI When set to a non-empty value, pytest knows it is running in a CI process and does not truncate summary info
2416
2416
BUILD_NUMBER Equivalent to CI
2417
2417
PYTEST_ADDOPTS Extra command line options
2418
2418
PYTEST_PLUGINS Comma-separated plugins to load during startup
0 commit comments