pytest --durations=10

Category: Python & pip

pytest --durations=10

Show the 10 slowest tests after the run

Shows the 10 slowest tests at the end of the run — useful for finding performance bottlenecks.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.