{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"}],"enrichment":{"capability":"Pytest plugin that measures and reports the execution time of individual tests, with options to filter by duration and disable colored output.","skillfed_tags":["pytest-plugin","test-profiling"],"use_cases":["Identify slow tests in a suite to prioritize optimization efforts.","Monitor test performance regressions across commits by comparing duration reports.","Debug flaky tests by observing variance in execution time across runs.","Generate timing reports in CI/CD pipelines to track test suite health over time."],"what_it_does":"pytest-timer is a pytest plugin that automatically measures and displays the execution time of each test as part of the test report. It was ported from the nose-timer plugin for the older nose test runner. After running tests, it appends a summary section showing test names, their status, and duration in seconds.\n\nThe plugin integrates directly into pytest's reporting pipeline with no configuration required beyond installation. It supports filtering to show only the slowest tests (via --timer-top-n), disabling colored output for headless environments (--timer-no-color), and filtering results by status color (--timer-filter). Optional dependencies on termcolor or colorama enable colored duration output.","worth_installing":"Yes, if you need basic test timing visibility and accept dormant maintenance. The plugin is simple, has no security vulnerabilities, and low install friction. However, if you need active bug fixes, advanced profiling features, or support for newer pytest versions beyond 3.12, consider whether the lack of recent updates poses a risk for your project."},"id":"pytest-timer","links":{"html":"https://skillfed.io/packages/pytest-timer","md":"https://skillfed.io/packages/pytest-timer.md","pypi":"https://pypi.org/project/pytest-timer/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-12-26","license_spdx":null,"license_treatment":"permissive","name":"pytest-timer","python_support":"unspecified","summary":"A timer plugin for pytest"},"popularity":{"monthly_downloads":94800,"position":13302,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
