skillfed

pytest-reporter

Generate Pytest reports with templates

pytest-reporter v0.5.3 194.2K downloads/30d#9,842 on PyPI19
Permissive license MIT DORMANT released

What it is and what it does

pytest-reporter is a pytest plugin that acts as a bridge between test execution and custom report generation. Instead of producing fixed output formats, it collects test data and passes it to template implementations you provide or inherit. You specify a template directory and template name at runtime, and the plugin renders the report to your chosen output file.

The plugin exposes a rich context to templates—including test results, phases (setup, call, teardown), logs, warnings, and timing information—and delegates rendering logic to template implementations via a pytest hook. This design lets you generate any text-based format (HTML, LaTeX, CSV, plain text) by writing or reusing a template, without modifying the plugin itself. It's most useful when you need report formats beyond pytest's built-in options or want to standardize reporting across projects.

Use it for:

  • Generate branded HTML reports for CI/CD pipelines using a custom or inherited template.
  • Create LaTeX or PDF reports for formal test documentation and compliance artifacts.
  • Export test results as CSV for further analysis or integration with external tools.
  • Standardize test report format across multiple projects by sharing a template package.
  • Extend existing templates (like pytest-reporter-html1) to add project-specific sections or styling.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A pytest plugin that generates customizable test reports from templates, supporting any text-based output format like HTML, LaTeX, or CSV.

Yes, if you need templated test reports and are comfortable maintaining a template implementation yourself or using a third-party template package. The plugin is stable and has no known vulnerabilities, but dormant maintenance means it will not track pytest API changes proactively. Best suited for teams with established test reporting workflows that won't require frequent updates.

Install

pytest-reporter on PyPI

pip

pip install pytest-reporter

uv

uv add pytest-reporter

poetry

poetry add pytest-reporter

Installing pytest-reporter

Before you install

Low install friction with a single runtime dependency on pytest. Maintenance is dormant—no releases in 898 days, though the repository remains active with a last commit in September 2024. Suitable for stable use cases but do not expect rapid bug fixes or feature updates.

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

pytest --template-dir=templates --template=report.html --report=report.html

Requires Python 3.8 or later. Template rendering is delegated to template implementations (e.g., Jinja2); the plugin itself provides only the hook interface.

Verify before relying

  • Whether dormant status (no releases since February 2024) affects compatibility with recent pytest versions.
  • Availability and maturity of template packages like pytest-reporter-html1 referenced in the documentation.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 1 — pytest
Maintenance dormant — 898 days since the last release
Last repo commit
First released
Downloads 194,218/month — #9,842 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pytest_reporter-0.5.3-py3-none-any.whl

Development Status :: 4 - BetaFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonTopic :: Software Development :: Testing

Tags

pytest report generationcustom test report templatespytest html report plugintest report renderingpytest output formattingtemplate-based test reports
pytest-plugintest-reportingtemplate-engine

More Testing packages

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

pytest

pytest is a testing framework that lets you…

permissive · top 100 on PyPI

virtualenv

virtualenv creates isolated Python environments…

permissive · top 100 on PyPI

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

pytest-asyncio

pytest-asyncio is a pytest plugin that enables…

permissive · top 1,000 on PyPI

pytest-json-ctrf

A pytest plugin that generates test reports in…

permissive · top 1,000 on PyPI

pytest-reporter-html1

Generates self-contained or modular HTML test…

permissive · top 15,000 on PyPI

pytest-json-report

A pytest plugin that generates JSON-formatted…

permissive · top 5,000 on PyPI

pytest-reportlog

Writes pytest test results to a JSON Lines file…

permissive · top 15,000 on PyPI

pytest-pretty

A pytest plugin that formats test output with…

permissive · top 5,000 on PyPI

pytest-xml

A pytest plugin that generates XML output from…

unclear · top 15,000 on PyPI

pytest-logging

A pytest plugin that configures Python logging…

permissive · top 15,000 on PyPI

pytest-html

Generates HTML reports for pytest test results,…

copyleft · top 1,000 on PyPI

pytest-metadata

A pytest plugin that captures and exposes test…

copyleft · top 1,000 on PyPI

pytest-html-reporter

Generates static HTML test reports from pytest…

permissive · top 15,000 on PyPI

pytest-check

A pytest plugin that allows tests to continue…

unclear · top 5,000 on PyPI