{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"A pytest plugin that identifies and reports fixtures defined in your test suite that are never actually used during test execution.","skillfed_tags":["pytest-plugin","test-maintenance","code-quality"],"use_cases":["Clean up test fixture cruft by identifying fixtures that were created but never actually used in any test.","Enforce fixture hygiene in CI/CD by failing the build when unused fixtures are detected, using `--unused-fixtures-fail-when-present`.","Scope fixture analysis to specific test directories to focus cleanup efforts on particular modules or packages.","Exclude intentionally unused fixtures (e.g., those reserved for skipped tests) using the `@ignore_unused_fixture` decorator.","Audit legacy test suites to understand which fixtures are truly active versus which can be removed."],"what_it_does":"pytest-unused-fixtures is a pytest plugin that runs after your tests complete and compares all fixtures available in your test collection against those actually used during the test run. It then reports which fixtures were never invoked, grouped by their definition location. This helps identify dead code in your test fixtures that can be safely removed or refactored.\n\nThe plugin requires actual test execution to work accurately because pytest supports dynamic fixture requests that static analysis cannot catch. You enable it by passing the `--unused-fixtures` flag to pytest. It offers several configuration options: you can ignore specific paths, limit the scan to particular directories, mark individual fixtures to skip reporting with a decorator, and optionally fail the test session if unused fixtures are found.","worth_installing":"Yes. This is a low-friction, actively maintained plugin that solves a real test maintenance problem\u2014identifying dead fixture code\u2014with no security concerns and a permissive license. It integrates seamlessly into pytest workflows and is useful for any project that wants to keep its test fixtures clean and intentional."},"id":"pytest-unused-fixtures","links":{"html":"https://skillfed.io/packages/pytest-unused-fixtures","md":"https://skillfed.io/packages/pytest-unused-fixtures.md","pypi":"https://pypi.org/project/pytest-unused-fixtures/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-12-23","license_spdx":null,"license_treatment":"permissive","name":"pytest-unused-fixtures","python_support":"supports_current","summary":"A pytest plugin to list unused fixtures after a test run."},"popularity":{"monthly_downloads":317150,"position":7665,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.1"}
