pytest-xml
Create simple XML results for parsing
What it is and what it does
pytest-xml is a pytest plugin that converts test results into XML format suitable for parsing by CI/CD systems, test dashboards, and other tools. It depends on pytest, pytest-metadata, dict2xml, and jinja2 to generate structured XML reports from test runs.
The plugin is in beta status and was first released in November 2024. It is designed for developers who need to export pytest results to XML for integration with external systems, though the package remains largely undocumented—the description notes "TODO" for both features and usage instructions. The codebase has not been updated since its initial release, and community engagement is minimal.
Use it for:
- Export pytest results to XML for ingestion by CI/CD pipelines that expect structured test reports.
- Generate test reports in XML format for integration with test management or quality assurance platforms.
- Create machine-readable test output for downstream analysis, aggregation, or dashboard visualization.
- Automate test result parsing by converting pytest output to a standardized XML structure.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pytest plugin that generates XML output from test results for parsing and integration with external tools.
No—not yet. The package is in beta, dormant since release, lacks documentation (features and usage are marked TODO), and has minimal community adoption. Install only if you specifically need XML output from pytest and are willing to explore or contribute to an early-stage, unmaintained project. For production use, consider more established pytest XML plugins.
Install
pytest-xml on PyPI
pip
pip install pytest-xmluv
uv add pytest-xmlpoetry
poetry add pytest-xmlInstalling pytest-xml
Before you install
Low install friction with a pure-Python wheel. Maintenance is dormant—the package was released on 2024-11-14 and has not been updated since, with only 1 repository star. Dormant status suggests limited community adoption or active development.
License in practice
Dual-licensed under BSD-3-Clause and Mozilla Public License 2.0. Both are permissive open-source licenses compatible with most projects, though the dual licensing may require tracking both terms if you redistribute or modify the code.
Quickstart
pip install pytest-xml
import pytest
# Run pytest with the plugin to generate XML output
# pytest --xml=results.xml your_tests.py
Requires Python 3.11 or later.
Verify before relying
- What XML schema or format the plugin produces and whether it matches JUnit or another standard.
- Whether the plugin is actively maintained or if the dormant status indicates abandoned development.
- How the plugin integrates with pytest-metadata and what metadata is included in the XML output.
Package facts
| License | Dual License: All software and documentation is distributed under "BSD 3-Clause License" AND "Mozilla Public License Version 2.0" ================================== Copyright (c) 2024, Adam Nogowski… (full text in the JSON record) (unclear) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — pytest, pytest-metadata, dict2xml, jinja2 |
| Maintenance | dormant — 638 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 176,582/month — #10,240 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytest_xml-0.1.1-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
data-to-xmlConverts Python dictionaries and lists into XML…
unclear · top 15,000 on PyPI
pytest-htmlGenerates HTML reports for pytest test results,…
copyleft · top 1,000 on PyPI
pytest-jsonA pytest plugin that generates JSON reports of…
permissive · top 15,000 on PyPI
pytest-loggingA pytest plugin that configures Python logging…
permissive · top 15,000 on PyPI
pytest-richA pytest plugin that uses rich to format and…
permissive · top 15,000 on PyPI
pytest-item-dictA pytest plugin that builds hierarchical…
unclear · top 15,000 on PyPI
pytest-seleniumpytest-selenium is a pytest plugin that…
copyleft · top 15,000 on PyPI
pytest-cookiesA pytest plugin that provides a `cookies`…
permissive · top 15,000 on PyPI
pytest-helpers-namespaceProvides a pytest namespace for registering and…
permissive · top 15,000 on PyPI
pytest-messengerA pytest plugin that sends test results to…
permissive · top 5,000 on PyPI