html-testRunner
A Test Runner in python, for Human Readable HTML Reports
What it is and what it does
HtmlTestRunner is a unittest test runner that replaces the default text output with HTML reports saved to disk. It captures test outcomes—passes, failures, errors, and skipped tests—and presents them in a structured HTML format suitable for sharing or archiving test results. The package depends only on Jinja2 for template rendering.
You use it by passing an instance of HTMLTestRunner to unittest.main() with an output directory parameter. The runner then generates an HTML file in that directory showing a summary and detailed breakdown of all test results. It's designed as a drop-in replacement for the standard unittest runner, requiring minimal code changes to adopt.
Use it for:
- Generate shareable HTML test reports for CI/CD pipelines or team review
- Archive test results in human-readable format for compliance or historical tracking
- Display test outcomes in a web browser instead of terminal output for better readability
- Integrate with build systems that expect HTML test artifacts
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A unittest test runner that generates human-readable HTML reports of test results, including pass/fail/error/skip status for each test.
Yes, if you need HTML test reports and accept dormant maintenance. The package is stable with no known vulnerabilities, but it has not been updated since 2019-09-09. Install only if the feature set meets your needs and you're comfortable with no active development or support.
Install
html-testrunner on PyPI
pip
pip install html-testrunneruv
uv add html-testrunnerpoetry
poetry add html-testrunnerInstalling html-testRunner
Before you install
Low install friction with a single runtime dependency. However, the package is dormant—last release was 2019-09-09, with no updates since then despite an active repository.
License in practice
MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice.
Quickstart
import HtmlTestRunner
import unittest
class TestExample(unittest.TestCase):
def test_sample(self):
self.assertEqual(1, 1)
if __name__ == '__main__':
unittest.main(testRunner=HtmlTestRunner.HTMLTestRunner(output='reports'))
Verify before relying
- Whether the package works reliably with Python versions beyond 3.5 (classifier lists only 3.5, but requires_python is unspecified)
- Whether HTML output format is customizable or fixed
- Whether the package handles parallel test execution
Package facts
| License | MIT license (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — Jinja2 |
| Maintenance | dormant — 2,531 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 339,480/month — #7,425 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: html_testRunner-1.2.1-py2.py3-none-any.whl
Keywords: HtmlTestRunner, TestRunner, Html, Reports
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
xmlrunnerA unittest test runner that exports test…
copyleft · top 15,000 on PyPI
unittest-xml-reportingA unittest test runner that exports test…
permissive · top 5,000 on PyPI
nose2nose2 is a test runner that extends Python's…
permissive · top 15,000 on PyPI
colour-runnerAdds colored output to Python's unittest test…
permissive · top 15,000 on PyPI
zope.testrunnerA test runner for Python projects with support…
unclear · top 15,000 on PyPI
pytest-htmlGenerates HTML reports for pytest test results,…
copyleft · top 1,000 on PyPI
pytest-pspecFormats pytest test output in RSpec-style…
permissive · top 15,000 on PyPI
pynosepynose is an updated test runner that extends…
copyleft · top 5,000 on PyPI
taskipyTaskipy is a task runner that lets you define…
permissive · top 5,000 on PyPI
tap.pyProvides tools to parse, generate, and work…
permissive · top 15,000 on PyPI