pytest.ini
A configuration file in a project's root directory that holds pytest settings, such as registered markers.
In more detail
Its settings go under a [pytest] heading. The same settings can instead live in pyproject.toml, tox.ini or setup.cfg; pytest uses the first it finds and prints it in the header.
Example
[pytest]
markers =
slow: reaches outside this processRelated terms
- marker — A label attached to a test with @pytest.mark.name so you can select, skip or configure tests by that label.
- 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.
Taught in
- The Test Pyramid And Where It Is Wrong — Automated Testing, TDD & Quality Engineering