Registry / testing / pytest-extra-durations

pytest-extra-durations

JSON →
library0.1.3pypypi✓ verified 86d ago

A pytest plugin that reports aggregated test durations per function, per module, and total. Current version 0.1.3 (last release 2019-05-17). Low maintenance, stable for Python 3.5+.

pip install pytest-extra-durations
INSTALL
IMPORT
SIG · PYTEST-EXTRA-DURAT
P
pytest-extra-durations
testingpythonv0.1.3
Install
2.7s avg
Import
372ms
Disk
29MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.396s · 30.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.7s · import 0.348s · 31MB
29MB installed
● package 29MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pytest
import pytest

Install and run with --durations-extra flag to see aggregated durations.

# No special import needed; enable with --durations-extra # Run tests with extra duration summaries: # pytest --durations-extra
Debug
Known issues
gotchaThe --durations-extra flag is NOT a builtin pytest flag; you must install pytest-extra-durations for it to work. Running pytest --durations-extra without the plugin results in an 'unrecognized arguments' error.
fix
pip install pytest-extra-durations
affects: all
gotchaThe plugin reports durations only after the entire test suite finishes, not per-test during execution. This may confuse users expecting real-time reporting.
fix
Wait for test completion to see extra duration summaries.
affects: all
deprecatedNo new releases since 2019; compatible with pytest <7. May not work with modern pytest versions due to internal API changes (e.g., pytest 7+).
fix
Consider forking or using alternative plugins like pytest-timeout or pytest-benchmark.
affects: >=0.1.3
Errors
Common errors & fixes
usage: pytest [options] [file_or_dir] ... pytest: error: unrecognized arguments: --durations-extra
Plugin not installed correctly or not activated.
fix
Ensure pytest-extra-durations is installed in the same environment: pip install pytest-extra-durations
AttributeError: module 'pytest' has no attribute 'hookimpl'
Plugin is incompatible with pytest version (e.g., pytest 7+ changed hook registration).
fix
Downgrade pytest to version <=6 or use a compatible alternative.
Upgrade
Version history
0.1.3latest on PyPI · released Apr 21, 2020
Audit
Dependencies
pytestrequiredRequired plugin host
Agent activity
13 hits · last 30 days
node
10
Amazon
1
Resources
pytest-extra-durations — pip install pytest-extra-durations · libregistry