$npx skillfedfor your agent

pytest-html

pytest plugin for generating HTML reports

Worth itPyPI UtilitiesReleased Jan 202621.8M downloads / moMPL-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_html-4.2.0-py3-none-any.whl
v4.2.0 · released 2026-01-19 · Python >=3.9 · 3 runtime deps: jinja2, pytest-metadata, pytest

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

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.
Same gist for agents: .md · .json

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.

Worth 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

LicenseMPL-2.0 copyleft
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
jinja2pytest-metadatapytest
MaintenanceActively maintained 207 days since the last release
Last repo commit
First released
Downloads21,783,628 / month, #991 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
pytest html report generatortest results html reportpytest report plugingenerate test report htmlpytest test summary reporthtml test output pytestpytest reporting tool
Topics
pytest-plugintest-reportingci-cd
PyPI keywords
htmlpytestreport

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

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.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

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.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

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.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

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.

MITpure Python
1.2Bdownloads / mo

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