{"id":24423,"library":"pytest-extra-durations","title":"pytest-extra-durations","description":"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+.","status":"maintenance","version":"0.1.3","language":"python","source_language":"en","source_url":"https://github.com/gabrieldemarmiesse/pytest-extra-durations","tags":["pytest","plugin","durations","testing"],"install":[{"cmd":"pip install pytest-extra-durations","lang":"bash","label":"Standard"}],"dependencies":[{"reason":"Required plugin host","package":"pytest","optional":false}],"imports":[{"note":"","wrong":null,"symbol":"pytest","correct":"import pytest"}],"quickstart":{"code":"# No special import needed; enable with --durations-extra\n# Run tests with extra duration summaries:\n# pytest --durations-extra","lang":"bash","description":"Install and run with --durations-extra flag to see aggregated durations."},"warnings":[{"fix":"pip install pytest-extra-durations","message":"The --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.","severity":"gotcha","affected_versions":"all"},{"fix":"Wait for test completion to see extra duration summaries.","message":"The plugin reports durations only after the entire test suite finishes, not per-test during execution. This may confuse users expecting real-time reporting.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider forking or using alternative plugins like pytest-timeout or pytest-benchmark.","message":"No new releases since 2019; compatible with pytest <7. May not work with modern pytest versions due to internal API changes (e.g., pytest 7+).","severity":"deprecated","affected_versions":">=0.1.3"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure pytest-extra-durations is installed in the same environment: pip install pytest-extra-durations","cause":"Plugin not installed correctly or not activated.","error":"usage: pytest [options] [file_or_dir] ...\npytest: error: unrecognized arguments: --durations-extra"},{"fix":"Downgrade pytest to version <=6 or use a compatible alternative.","cause":"Plugin is incompatible with pytest version (e.g., pytest 7+ changed hook registration).","error":"AttributeError: module 'pytest' has no attribute 'hookimpl'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}