{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"}],"enrichment":{"capability":"A pytest plugin that measures and reports fixture and test function execution times separately, with support for xdist and time-traveling packages.","skillfed_tags":["pytest-plugin","performance-profiling","ci-integration"],"use_cases":["Identify slow fixtures that are blocking your test suite and prioritize optimization efforts.","Compare test performance across modules or classes to find which parts of your codebase have the slowest tests.","Export timing data as JSON to track test performance trends over time in CI/CD pipelines.","Debug test setup and teardown overhead separately from the actual test logic execution time.","Use percentile columns to understand the distribution of test durations rather than just min/max values."],"what_it_does":"pytest-durations is a pytest plugin that breaks down test execution time into separate measurements for fixtures, test setup, test calls, and teardown phases. Unlike pytest's built-in --durations flag, it isolates fixture durations from test function durations and accounts for fixtures with scope larger than \"function\" by subtracting their time from the test duration, giving you a clearer picture of what's actually slow in your test suite.\n\nThe plugin integrates directly into pytest and offers granular reporting options: you can filter which sections to display (fixture, call, setup, teardown), choose how to group results (by module, class, or function), select which statistics to show (total, num, min, med, max, and percentiles p90/p95/p99), and export results as JSON for CI integration. It works with pytest-xdist for distributed testing and handles time-traveling packages like freezegun.","worth_installing":"Yes. This is a lightweight, actively maintained plugin with no security vulnerabilities, permissive licensing, and a single stable dependency. Install it if you need finer-grained visibility into test performance than pytest's built-in --durations provides, especially for large test suites where fixture overhead is significant."},"id":"pytest-durations","links":{"html":"https://skillfed.io/packages/pytest-durations","md":"https://skillfed.io/packages/pytest-durations.md","pypi":"https://pypi.org/project/pytest-durations/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-14","license_spdx":null,"license_treatment":"permissive","name":"pytest-durations","python_support":"supports_current","summary":"Pytest plugin reporting fixtures and test functions execution time."},"popularity":{"monthly_downloads":3493107,"position":2602,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.9.0"}
