--- id: pytest-extra-durations version: "0.1.3" license: MIT license_treatment: permissive maintenance: abandoned --- # pytest-extra-durations — A pytest plugin to get durations on a per-function basis and per module basis. License: permissive · Maintenance: abandoned · Downloads: 108.0K/mo ## What it is and what it does pytest-extra-durations is a pytest plugin that adds three layers of timing information to your test runs. It always displays the sum of all test, setup, and teardown durations—a figure independent of worker count or collection time. It also offers optional per-module and per-function duration summaries via command-line flags, similar to pytest's built-in `--durations` option but aggregating across workers in pytest-xdist runs. The plugin integrates directly into pytest's reporting and requires only pytest as a dependency. It is designed to help developers identify slow tests and modules in their suite, particularly useful when running distributed tests with pytest-xdist where standard timing metrics can be obscured by parallelization overhead. Use it for: - Identify which test modules consume the most time in a large test suite - Find individual test functions that are unexpectedly slow, even when run in parallel - Compare total test execution time across runs without being affected by worker count - Diagnose performance regressions by tracking per-module and per-function durations over time - Optimize test parallelization by understanding which tests or modules are bottlenecks ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A pytest plugin that reports test execution time broken down by module and individual test function, including setup and teardown durations, and works with pytest-xdist. No. The package is abandoned (last release April 2020, no commits since) and has not been maintained for over four years. While it has low install friction and a permissive license, the lack of maintenance means it is unlikely to work reliably with current pytest versions and may break silently. For active test timing analysis, consider a maintained alternative or pytest's built-in `--durations` option. ## Install pip install pytest-extra-durations uv add pytest-extra-durations poetry add pytest-extra-durations ## Installing pytest-extra-durations Before you install: Installation is straightforward with low friction—a pure Python wheel with only pytest as a runtime dependency. However, the package has been abandoned since April 2020 and receives no maintenance, so it may not work reliably with recent pytest versions or Python releases. License in practice: MIT license is permissive and imposes no restrictions on use, modification, or distribution in your own projects. Quickstart: pip install pytest-extra-durations pytest --modules-durations=4 ./path/to/test/directory pytest --functions-durations=4 ./path/to/test/directory Verify before relying: - Whether the plugin remains compatible with pytest versions released after April 2020 - Whether it works correctly with modern versions of pytest-xdist ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 108.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags pytest test duration reporting, per-function test timing, per-module test timing, pytest performance profiling, test execution speed analysis, pytest xdist timing, test suite duration breakdown, test-profiling, abandoned [View on SkillFed](https://skillfed.io/packages/pytest-extra-durations) · [View on PyPI](https://pypi.org/project/pytest-extra-durations/)