skillfed

pytest-reporter-html1

A basic HTML report template for Pytest

pytest-reporter-html1 v0.9.5 180.2K downloads/30d#10,151 on PyPI45
Permissive license MIT Active released

What it is and what it does

pytest-reporter-html1 is a Jinja2-based HTML report template for pytest that transforms test execution data into a structured, interactive HTML document. It builds on pytest-reporter to provide the underlying test data, then renders it through customizable templates with support for expandable sections, test metadata, markers, and fixtures. The report can be generated as a single self-contained file or split into separate CSS, JavaScript, and image assets.

The package is designed for developers who want readable, shareable test reports without heavy dependencies or complex configuration. It includes built-in filters for converting ANSI color codes to HTML, formatting timestamps, and rendering reStructuredText documentation. The template structure allows inheritance and customization, making it suitable both as a standalone reporting tool and as a foundation for project-specific report designs. It complies with Jenkins default Content Security Policy when using the split-report option.

Use it for:

  • Generate HTML test reports in CI/CD pipelines that comply with Jenkins CSP policies using --split-report.
  • Create customized test report templates by inheriting from html1/index.html and overriding specific blocks.
  • Display test metadata, markers, and fixtures alongside pass/fail results in a mobile-friendly format.
  • Embed ANSI-colored test output and reStructuredText documentation in self-contained HTML reports.
  • Share test results as standalone HTML files without requiring additional web server or dependencies.

Worth the install?

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

Generates self-contained or modular HTML test reports for pytest, using Jinja2 templates to display test results, phases, documentation, markers, and fixtures with expandable sections.

Yes. The package is actively maintained, has no known vulnerabilities, and low install friction. It solves a concrete problem—generating readable HTML test reports—with a permissive MIT license and a clean template-based design that supports both out-of-the-box use and customization. Suitable for teams needing Jenkins-compatible or mobile-friendly test reporting.

Install

pytest-reporter-html1 on PyPI

pip

pip install pytest-reporter-html1

uv

uv add pytest-reporter-html1

poetry

poetry add pytest-reporter-html1

Installing pytest-reporter-html1

Before you install

Low friction install with 5 runtime dependencies; actively maintained as of March 2026 with no known vulnerabilities.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open and closed projects.

Quickstart

pip install pytest-reporter-html1

pytest --template=html1/index.html --report=report.html

Requires Python 3.10 or later; pytest-reporter must be available as a runtime dependency.

Verify before relying

  • Whether the package works with pytest-metadata and pytest-rerunfailures without additional configuration.
  • Performance characteristics when generating reports for large test suites.
  • Mobile-friendly rendering quality on various screen sizes and browsers.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 5 — pytest-reporter, Jinja2, ansi2html, htmlmin2, docutils
Maintenance actively maintained — 308 days since the last release
Last repo commit
First released
Downloads 180,195/month — #10,151 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pytest_reporter_html1-0.9.5-py3-none-any.whl

Development Status :: 4 - BetaFramework :: PytestIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Software Development :: TestingTopic :: Text Processing :: Markup :: HTML

Tags

pytest html report generatortest report template jinja2pytest html output formattertest results html dashboardpytest report customizationjenkins compatible test reportspytest test summary html
pytest-plugintest-reportinghtml-templates

More Testing packages