pytest-json-report
A pytest plugin to report test results as JSON files
What it is and what it does
pytest-json-report is a pytest plugin that transforms test execution results into JSON format, making it easy to integrate test data into external systems, dashboards, or analysis pipelines. It captures test outcomes, execution metadata, captured output, logs, exception tracebacks, and environment details in a structured JSON file.
The plugin runs as a pytest extension and can be invoked with command-line flags to control report scope (full details or summary-only), field inclusion, indentation, and output location. It also provides hooks and fixtures for adding custom metadata to individual tests or modifying the entire report before serialization, allowing teams to tailor reports to their specific CI/CD or reporting workflows.
Use it for:
- Integrate pytest results into CI/CD dashboards or reporting systems that consume JSON
- Extract test metrics and trends for analysis without parsing text-based test output
- Add custom metadata to test runs for correlation with deployment or build information
- Generate lightweight summary reports when full test details are not needed
- Automate post-test processing or notifications based on structured test data
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pytest plugin that generates JSON-formatted test reports, enabling test results to be processed by other applications or analysis tools.
Yes, if you need JSON-formatted test reports and can tolerate maintenance risk. The plugin is stable and low-friction to install, but it is abandoned—no releases since 2022-03-15. Before adopting, verify compatibility with your pytest version and assess whether the lack of ongoing maintenance poses a risk for your workflow.
Install
pytest-json-report on PyPI
pip
pip install pytest-json-reportuv
uv add pytest-json-reportpoetry
poetry add pytest-json-reportInstalling pytest-json-report
Before you install
Low install friction; depends only on pytest and pytest-metadata. However, the package is marked abandoned with no releases since 2022-03-15, though the repository remains unarchived and the last commit was 2023-07-31.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install pytest-json-report
pytest --json-report -v tests/
cat .report.json
Verify before relying
- Whether the package remains functional with current pytest versions despite no releases since 2022
- Current maintenance status and responsiveness to issues or pull requests
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pytest, pytest-metadata |
| Maintenance | abandoned — 1,613 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 15,022,199/month — #1,202 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytest_json_report-1.5.0-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
pytest-reportlogWrites pytest test results to a JSON Lines file…
permissive · top 15,000 on PyPI
pytest-jsonA pytest plugin that generates JSON reports of…
permissive · top 15,000 on PyPI
pytest-reporterA pytest plugin that generates customizable…
permissive · top 15,000 on PyPI
pytest-tinybirdA pytest plugin that automatically posts test…
permissive · top 15,000 on PyPI
pytest-prettyA pytest plugin that formats test output with…
permissive · top 5,000 on PyPI
pytest-reporter-html1Generates self-contained or modular HTML test…
permissive · top 15,000 on PyPI
pytest-htmlGenerates HTML reports for pytest test results,…
copyleft · top 1,000 on PyPI
pytest-custom-reportA pytest plugin that lets you customize the…
permissive · top 15,000 on PyPI
pytest-md-reportA pytest plugin that generates test outcome…
permissive · top 15,000 on PyPI