pytest-html
pytest plugin for generating HTML reports
Decision gist · record as of 2026-08-14
Yes. This is a mature, widely-used pytest plugin (top 1000 on PyPI) with low install friction, no security vulnerabilities, and active maintenance. The MPL-2.0 copyleft license is permissive for most use cases. Install it if you need HTML test reports; it's a standard tool in pytest ecosystems.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; pytest must be installed (included as a runtime dependency).
- Low install friction; pure Python wheel with no compiled dependencies.
- Actively maintained with recent commits and a stable production status.
License · maintenance · safety
MPL-2.0 (copyleft) — Licensed under MPL-2.0 (copyleft). You may use and modify the package freely, but derivative works and distributions must retain the same license and disclose source changes.
last release 2026-01-19 (207 days) · last repo commit 2026-08-10 · 775 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 21,783,628 downloads/mo, #991 on PyPI
Alternatives
Verify before relying
pip install pytest-html
pytest --html=report.html --self-contained-html- Whether the HTML report output is customizable beyond what the fact sheet describes.
- Whether pytest-metadata integration provides specific test metadata fields or just basic test info.
What it is and what it does
pytest-html is a pytest plugin that converts test execution results into standalone HTML reports. After running your tests with pytest, it generates a formatted web page showing which tests passed, failed, or were skipped, along with execution metadata. The plugin integrates directly into pytest's execution flow and relies on pytest, jinja2 for templating, and pytest-metadata for test information.
The package is designed for teams and CI/CD pipelines that need shareable, human-readable test reports. Instead of parsing console output or log files, stakeholders can open a single HTML file in any browser to see test results, timing, and status at a glance. It has been actively maintained since 2015 and supports modern Python versions (3.9 through 3.14).
Use it for
- Generate shareable HTML test reports after CI/CD pipeline runs for stakeholder review.
- Archive test results as standalone HTML files for compliance or historical record-keeping.
- Display test execution summaries in team dashboards or automated reporting systems.
- Create self-contained HTML reports that include all styling and don't require external resources.
- Integrate test reporting into development workflows where console output is insufficient.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a mature, widely-used pytest plugin (top 1000 on PyPI) with low install friction, no security vulnerabilities, and active maintenance. The MPL-2.0 copyleft license is permissive for most use cases. Install it if you need HTML test reports; it's a standard tool in pytest ecosystems.
Install
pytest-html on PyPI
Before you install
Low install friction; pure Python wheel with no compiled dependencies. Actively maintained with recent commits and a stable production status. Requires Python 3.9 or later.
Requires Python 3.9 or later; pytest must be installed (included as a runtime dependency).
License in practice
Licensed under MPL-2.0 (copyleft). You may use and modify the package freely, but derivative works and distributions must retain the same license and disclose source changes.
Quickstart
pip install pytest-html
pytest --html=report.html --self-contained-html
Verify before relying
- Whether the HTML report output is customizable beyond what the fact sheet describes.
- Whether pytest-metadata integration provides specific test metadata fields or just basic test info.
Package facts
| License | MPL-2.0 copyleft |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesjinja2pytest-metadatapytest |
| Maintenance | Actively maintained 207 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 21,783,628 / month, #991 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)Natural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Utilities |
Evidence: pytest_html-4.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest html report generator”
- pytest-htmlGenerates HTML reports for pytest test results, turning test…
- pytest-html-reporterGenerates static HTML test reports from pytest test runs, with…
- pytest-reporter-html1Generates self-contained or modular HTML test reports for pytest,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also pytest-excel · pytest-html-merger · pytest-json-ctrf · pytest-selenium · pytest-xml · pytest-md-report · pytest-json · pytest-html-reporter · qase-pytest · pytest-sugar