CheckOps
pytest-html
pytest-html is an MPL-2.0 plugin from the pytest-dev organisation that generates an HTML report for pytest results, with environment details, extras such as images and links, and customisation hooks.
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
pytest-html is a plugin for pytest that generates an HTML report for test results, according to its README. It is maintained in the pytest-dev organisation and published on PyPI and conda-forge.
Running pytest with --html=report.html produces a report with a summary, environment information, and a table of results that can be filtered and sorted. Hooks let you add extras such as images, links, text or HTML to individual tests, add or change columns, and modify the summary and environment sections. A self-contained option embeds assets into a single file for easy sharing as a CI artifact.
The 4.x line is current, with release 4.2.0 in January 2026.
In the quality loop it supports release reviews with a simple, shareable report.
The source code is at pytest-dev/pytest-html on GitHub under the MPL-2.0 licence, with about 780 stars; the most recent commit was on 10 August 2026.
Features
- HTML report: Summary and results table.
- Extras: Images, links and HTML per test.
- Customisation hooks: Columns, summary and environment.
- Self-contained mode: Single-file report.
- pytest-dev maintained: Part of the pytest ecosystem.
Pros
- Zero-config: One command-line flag.
- Free to use: Open source under the MPL-2.0 licence, so the core tool costs nothing to use.
- Actively maintained: The repository had commits as recent as 10 August 2026.
Cons
- Single run: No history or trends.
- Basic visuals: Less rich than Allure.
Usage and Links (Example)
pip install pytest-html
pytest --html=report.html --self-contained-html
Resources:
Pricing
pytest-html is free and open source under the MPL-2.0 licence.
Recommended for?
- pytest users wanting a quick shareable report.
- Not a fit for cross-run analytics.
Conclusion
pytest-html is the simplest way to get an HTML report from pytest.
On CheckOps, pytest-html is filed under the Release & CI gates stage. Related tools listed here include pytest, Allure Report, ReportPortal, mochawesome, Monocart Reporter and TestBeats. Before choosing, compare them on licence, supported languages and platforms, hosting model, and how well each fits your existing CI pipeline. Facts on this page were checked against the official website, documentation and repository on 11 November 2026; statements the vendor makes about its own product are marked as vendor claims.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with pytest-html side by side.
- Ppytestpytest is the usual Python test runner: plain asserts, fixtures, parametrization, and a large plugin set.Compare with pytest-html
AAllure ReportAllure Report turns test results from many frameworks into one HTML report. The report tool is free and open source.Compare with pytest-html
RReportPortalReportPortal is an open-source test-results server with live reporting, failure analysis, and dashboards. Hosted support is paid.Compare with pytest-html
Mmochawesomemochawesome is an MIT-licensed reporter for the Mocha JavaScript test framework that generates a standalone HTML/CSS report with charts, filters, inline test code and stack traces.Compare with pytest-html
MMonocart ReporterMonocart Reporter is an MIT-licensed Playwright test reporter with an interactive tree-grid report, fast filtering, timeline and resource graphs, and code coverage support.Compare with pytest-html
TTestBeatsTestBeats is an MIT-licensed tool that publishes test results from automation frameworks to Slack, Microsoft Teams, Google Chat and other channels, with an optional results portal.Compare with pytest-html