--no-header
The pytest option that hides the session header at the start of a run.
In more detail
Use it when the header is not the point and you want a report to fit on one screen. The header is still worth reading when a suite behaves differently on another machine.
Related terms
- 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.
- pytest -v — The pytest option that prints each test's node ID and result on its own line instead of one dot per test.
Taught in
- Introducing pytest — Automated Testing, TDD & Quality Engineering
- Parametrised Tests — Automated Testing, TDD & Quality Engineering