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 process

Related terms

Taught in

References