--- id: pytest-json version: "0.4.0" license: MIT license_treatment: permissive maintenance: abandoned --- # pytest-json — Generate JSON test reports License: permissive · Maintenance: abandoned · Downloads: 328.2K/mo ## What it is and what it does pytest-json is a pytest plugin that captures test execution results and writes them to a JSON file. It supports two output formats: a custom JSON structure and an optional JSON API-compliant format. The plugin allows you to specify the report path via command-line flag or pytest configuration file, and supports adding custom metadata at the environment, test, and stage levels through pytest hooks. The package has no runtime dependencies and integrates directly into pytest's reporting pipeline. It was designed to work alongside pytest-html without conflicts. However, the project has been abandoned since 2016-01-18 and has not been updated to support modern Python or pytest versions, making it a significant compatibility risk for current development environments. Use it for: - Export pytest results to JSON for consumption by CI/CD pipeline tools or dashboards - Generate JSON API-compliant test reports for integration with downstream frameworks - Capture test metadata and environment information in structured JSON format for post-processing - Archive test results in a machine-readable format for historical analysis or compliance reporting ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A pytest plugin that generates JSON reports of test results, with optional JSON API normalization for consumption by downstream tools. No. The package is abandoned (last release 2016-01-18, last commit 2017-11-14) and has not been maintained for years. It targets Python 2.7, 3.3, 3.4, 3.5 and pytest 2.7, all long obsolete. Install friction is high and there is no active maintenance or security oversight. ## Install pip install pytest-json uv add pytest-json poetry add pytest-json ## Installing pytest-json Before you install: High install friction and abandoned maintenance status. Last release was 2016-01-18 and last commit 2017-11-14. The package has not received updates in years. License in practice: MIT license permits free use, modification, and distribution with minimal restrictions, suitable for both open-source and commercial projects. Quickstart: pip install pytest-json py.test --json=report.json or configure in pytest.ini: [pytest] json_report = report.json Requires pytest 2.7 or newer; targets Python 2.7, 3.3, 3.4, 3.5 which are obsolete Verify before relying: - Compatibility with pytest versions beyond 2.7 and Python versions beyond 3.5 - Whether the JSON schema or jsonapi output format remains compatible with current tools - Status of any known issues or breaking changes since the last release ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: high - Maintenance: abandoned - Downloads: 328.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags pytest json report generator, test results to json, pytest json output plugin, json test reporting, pytest json api export, automated test report json, test-reporting, json-export, abandoned [View on SkillFed](https://skillfed.io/packages/pytest-json) · [View on PyPI](https://pypi.org/project/pytest-json/)