session header

The block pytest prints at the start of a run naming the platform, Python and pytest versions, root directory, plugins and number of tests collected.

In more detail

It is the first thing to read when a suite behaves differently on another machine. The --no-header option hides it to keep output short.

Example

platform darwin -- Python 3.14.7, pytest-9.1.1, pluggy-1.6.0

Related terms

Taught in

References