pytest-reporter-html1
A basic HTML report template for Pytest
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-html1uv
uv add pytest-reporter-html1poetry
poetry add pytest-reporter-html1Installing 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
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-reporterA pytest plugin that generates customizable…
permissive · top 15,000 on PyPI
pytest-json-reportA pytest plugin that generates JSON-formatted…
permissive · top 5,000 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
pytest-metadataA pytest plugin that captures and exposes test…
copyleft · top 1,000 on PyPI
pytest-htmlGenerates HTML reports for pytest test results,…
copyleft · top 1,000 on PyPI
jinja2-fragmentsRenders individual Jinja2 template blocks as…
permissive · top 15,000 on PyPI
pytest-pytestrailA pytest plugin that decorates test functions…
permissive · top 15,000 on PyPI
pytest-excelA pytest plugin that generates Excel reports…
permissive · top 15,000 on PyPI
Flask-MomentFlask-Moment adds moment.js date and time…
permissive · top 15,000 on PyPI
pytest-tornadoA pytest plugin that provides fixtures and…
permissive · top 15,000 on PyPI