--durations

The pytest option that lists the slowest tests and how long each took.

In more detail

--durations=10 prints the ten slowest; very fast tests are hidden unless you add -vv. It is how you measure your suite's real shape before arguing about it.

Example

pytest -q --durations=3

Related terms

Taught in

References