unittest-xml-reporting
unittest-based test runner with Ant/JUnit like XML reporting.
Decision gist · record as of 2026-08-14
Yes. The package is stable (Production/Stable status), has no known vulnerabilities, requires only one lightweight dependency (lxml), and solves a concrete problem—converting unittest results to xUnit XML—that CI/CD pipelines and test aggregators expect. Aging maintenance (219 days since last release) is a minor concern but not a blocker given the package's narrow, mature scope. Install it if you need xUnit-compatible test reports.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; lxml is installed as a runtime dependency.
- Low install friction with a single runtime dependency (lxml).
- Maintenance status is aging—last release was 219 days ago—but the repository remains active with recent commits and no archived status.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause is a permissive license; you may use, modify, and distribute this package with minimal restrictions, provided you retain the license notice.
last release 2026-01-07 (219 days) · last repo commit 2026-01-07 · 307 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 8,416,842 downloads/mo, #1,624 on PyPI
Alternatives
Verify before relying
pip install unittest-xml-reporting
import unittest
if __name__ == '__main__':
unittest.main(
testRunner=XMLTestRunner(output='test-reports'),
failfast=False, buffer=False, catchbreak=False)- Whether the package's limited support for unittest.TestCase.subTest affects your test suite's reporting granularity.
- Compatibility with specific CI/CD systems beyond Jenkins xUnit plugin versions 1.100 and 1.104+.
- Whether the package maintains backward compatibility with older xUnit schemas.
What it is and what it does
unittest-xml-reporting is a test runner for Python's built-in unittest framework that captures test results and writes them to XML files in xUnit format. It integrates directly into your test execution pipeline by replacing the default test runner, and outputs structured reports that tools like build systems and continuous integration servers can parse and display. The package depends only on lxml for XML generation.
You use it by instantiating XMLTestRunner in place of the standard unittest runner, pointing it to an output directory or file. It supports command-line discovery and doctest reporting. The XML output follows the xUnit schema, though the package notes that sub-test reporting has limited granularity because xUnit schemas do not map well to unittest's sub-test concept.
Use it for
- Export unittest results to XML for continuous integration servers to parse and display test metrics.
- Generate structured test reports that build systems and IDEs can consume to show test pass/fail status.
- Run doctests through the test runner to produce xUnit-compatible reports.
- Integrate with Django test runners by setting TEST_RUNNER to the package's Django test runner.
- Capture test results to memory or file for post-processing or archival in automated test pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is stable (Production/Stable status), has no known vulnerabilities, requires only one lightweight dependency (lxml), and solves a concrete problem—converting unittest results to xUnit XML—that CI/CD pipelines and test aggregators expect. Aging maintenance (219 days since last release) is a minor concern but not a blocker given the package's narrow, mature scope. Install it if you need xUnit-compatible test reports.
Install
unittest-xml-reporting on PyPI
Before you install
Low install friction with a single runtime dependency (lxml). Maintenance status is aging—last release was 219 days ago—but the repository remains active with recent commits and no archived status.
Requires Python 3.10 or later; lxml is installed as a runtime dependency.
License in practice
BSD-2-Clause is a permissive license; you may use, modify, and distribute this package with minimal restrictions, provided you retain the license notice.
Quickstart
pip install unittest-xml-reporting
import unittest
if __name__ == '__main__':
unittest.main(
testRunner=XMLTestRunner(output='test-reports'),
failfast=False, buffer=False, catchbreak=False)
Verify before relying
- Whether the package's limited support for unittest.TestCase.subTest affects your test suite's reporting granularity.
- Compatibility with specific CI/CD systems beyond Jenkins xUnit plugin versions 1.100 and 1.104+.
- Whether the package maintains backward compatibility with older xUnit schemas.
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagelxml |
| Maintenance | Aging 219 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,416,842 / month, #1,624 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/StableIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming 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 :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing |
Evidence: unittest_xml_reporting-4.0.0-py2.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 › “xunit test runner”
- unittest-xml-reportingA unittest test runner that exports test results to XML files in…
- junitparserParse, create, and manipulate JUnit/xUnit test result XML files,…
- xunitparserParses JUnit/XUnit XML test result files and maps them to Python…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules 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.
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.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also xmlrunner · xunitparser · html-testRunner · junit2html · junitparser · teamcity-messages · python-subunit · junit-xml-2 · colour-runner · flake8-formatter-junit-xml