junit2html
Generate HTML reports from Junit results
What it is and what it does
junit2html reads JUnit or XUnit XML test result files—the standard format produced by most test runners—and generates a standalone HTML report that displays test outcomes, pass/fail status, and execution details in a browser-viewable format. It depends only on jinja2 for templating, making it lightweight and straightforward to integrate into CI/CD pipelines or local test workflows.
The package is actively maintained, requires Python 3.8 or later, and carries an MIT license. It sits in the top 5000 PyPI packages by download volume, suggesting it is a stable, widely-used tool for teams that need human-readable test reports without setting up complex reporting infrastructure.
Use it for:
- Convert test results from pytest, unittest, or other test runners into shareable HTML reports for stakeholders.
- Generate test reports in CI/CD pipelines to archive or display alongside build artifacts.
- Create a single-file HTML report for offline viewing of test outcomes without external dependencies.
- Integrate test result visualization into custom reporting dashboards or documentation.
- Quickly inspect test failures and execution times in a formatted, clickable HTML interface.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts JUnit or XUnit XML test result files into a single-file HTML report for viewing test outcomes in a browser.
Yes. Low install friction, active maintenance, permissive MIT license, and no known vulnerabilities make this a straightforward choice for teams needing to convert JUnit XML results to HTML. The single jinja2 dependency keeps it lightweight. Suitable for CI/CD integration and local test workflows.
Install
junit2html on PyPI
pip
pip install junit2htmluv
uv add junit2htmlpoetry
poetry add junit2htmlInstalling junit2html
Before you install
Low friction install with a single runtime dependency (jinja2). Actively maintained as of 64 days ago with support for current Python versions (3.8+).
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install junit2html
from junit2html import junit2html
junit2html.main(['--input', 'results.xml', '--output', 'report.html'])
Requires Python 3.8 or later.
Verify before relying
- Whether the package handles large XML files or has performance constraints.
- What styling and layout options are available in the generated HTML reports.
- Whether it supports custom templates or report customization beyond defaults.
Package facts
| License | License :: OSI Approved :: MIT License (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — jinja2 |
| Maintenance | actively maintained — 64 days since the last release |
| First released | |
| Downloads | 2,283,985/month — #3,164 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: junit2html-31.1.4-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
junitparserParse, create, and manipulate JUnit/xUnit test…
permissive · top 5,000 on PyPI
secscanner2junitConverts GitLab security scanner output (SAST,…
copyleft · top 15,000 on PyPI
unittest-xml-reportingA unittest test runner that exports test…
permissive · top 5,000 on PyPI
junit-xml-2Generates JUnit XML test result reports from…
permissive · top 15,000 on PyPI
xunitparserParses JUnit/XUnit XML test result files and…
permissive · top 15,000 on PyPI
junit-xmlGenerates JUnit XML test result documents…
permissive · top 5,000 on PyPI
flake8-junit-reportConverts flake8 linting output to JUnit XML…
permissive · top 15,000 on PyPI
lcov-coberturaConverts code coverage reports from lcov format…
permissive · top 5,000 on PyPI
flake8-junit-report-basicConverts flake8 linting output to JUnit XML…
permissive · top 5,000 on PyPI
python-subunitSubunit is a streaming protocol library for…
permissive · top 5,000 on PyPI