skillfed

pytest-json-report

A pytest plugin to report test results as JSON files

pytest-json-report v1.5.0 15.0M downloads/30d#1,202 on PyPI156
Permissive license MIT Abandoned released

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-report

uv

uv add pytest-json-report

poetry

poetry add pytest-json-report

Installing 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

Development Status :: 4 - BetaFramework :: PytestProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

pytest json report plugintest results to jsonpytest report exportjson test reportingpytest test data extractionautomated test reportingpytest output formatting
pytest-plugintest-reportingci-cd

More Testing packages