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.0Related terms
- pytest — A popular Python testing framework that finds test functions automatically and reports failures with detailed comparisons.
- plugin — An add-on package that extends a tool with extra features without changing the tool itself.
- test collection — The step where pytest searches files and names to decide which tests exist before running any of them.
Taught in
- Introducing pytest — Automated Testing, TDD & Quality Engineering