skillfed

pytest-xml

Create simple XML results for parsing

pytest-xml v0.1.1 176.6K downloads/30d#10,240 on PyPI1
License unclear 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) DORMANT released

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-xml

uv

uv add pytest-xml

poetry

poetry add pytest-xml

Installing 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

Development Status :: 4 - BetaFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseLicense :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Utilities

Tags

pytest xml outputtest results xml exportpytest xml pluginjunit xml pytestxml test reportingpytest xml resultstest report xml
test-reportingxml-export

More Utilities packages