{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/5"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"}],"enrichment":{"capability":"A pytest plugin that builds hierarchical dictionaries mirroring the test collection tree, tracking test outcomes, durations, and aggregated counts across directory, module, class, and function levels.","skillfed_tags":["pytest-plugin","test-reporting","hierarchical-results"],"use_cases":["Export test results as hierarchical JSON for custom reporting or CI/CD integration","Aggregate pass/fail/skip counts at the suite, module, or class level for summary dashboards","Track per-test and per-node execution time to identify slow test suites or bottlenecks","Inspect test collection structure programmatically from pytest hooks to validate test organization","Generate HTML or XML reports that preserve the hierarchical structure of your test suite"],"what_it_does":"pytest-item-dict is a pytest plugin that transforms flat test collections into hierarchical dictionaries reflecting the directory, module, class, and function structure of your test suite. It provides two main dictionaries: collect_dict (populated after collection with test counts) and test_dict (populated during the run with outcomes, durations, and aggregated result counts). Every parent node automatically receives a @counts dict summing the outcomes of all leaf tests beneath it (passed, failed, skipped, executed, unexecuted, total) and optional @total_duration aggregates.\n\nThe plugin self-registers via the pytest11 entry point and requires no conftest changes for basic use. Access the hierarchies from any pytest hook via the plugin manager. Configuration options in pytest.ini or pyproject.toml let you control marker annotation, outcome recording, duration tracking, setup/teardown phase recording, and whether counts and durations bubble up through parent nodes. It is designed for test reporting, JSON export, and introspection of test structure and results during or after a run.","worth_installing":"Yes. This is a focused, low-friction pytest plugin with active maintenance, no security vulnerabilities, and a dual permissive license. Install it if you need hierarchical test result aggregation, JSON export of test structure, or programmatic access to test outcomes grouped by suite/module/class. The Python >= 3.11 requirement is the only real constraint; if your project targets older Python, it won't work."},"id":"pytest-item-dict","links":{"html":"https://skillfed.io/packages/pytest-item-dict","md":"https://skillfed.io/packages/pytest-item-dict.md","pypi":"https://pypi.org/project/pytest-item-dict/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-22","license_spdx":null,"license_treatment":"unclear","name":"pytest-item-dict","python_support":"supports_current","summary":"Get a hierarchical dict of session.items"},"popularity":{"monthly_downloads":177248,"position":10217,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.7"}
