Registry / testing / pytest-xml

pytest-xml

JSON →
library0.1.1pypypiunverified

A pytest plugin for generating simple XML test results for external parsing. Currently at v0.1.1 (requires Python >=3.11). Minimal maintenance, no recent updates.

pip install pytest-xml
INSTALL
IMPORT
SIG · PYTEST-XML
P
pytest-xml
testingpythonv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pytest-xml
✓ pytest-xml is a plugin; no import needed. Enable via --xml or pytest.ini.
✗ import pytest_xml
Plugins are auto-discovered; explicit import not required and may cause import errors.
xml_plugin
✓ No symbol to import; use pytest --xml=output.xml
✗ from pytest_xml import *
No public Python API; only CLI option.

Generate an XML report for test results. The --xml flag outputs results to the specified file.

# Run tests with XML output pytest --xml=results.xml
pytest --version
Debug
Known issues
gotchaThe plugin only supports Python >=3.11. Older Pythons will cause installation failures.
fix
Upgrade Python to 3.11+ or avoid using this plugin.
affects: <0.1.1 (no older versions published)
breakingNo --junitxml conflict? pytest-xml outputs simple XML structure, not JUnit format. Do not expect JUnit attributes.
fix
Use --junitxml if JUnit format is needed (built-in pytest flag).
affects: all
deprecatedThe project has no recent updates; may be abandoned. No issue tracker activity.
fix
Consider using built-in --junitxml or a more maintained plugin like pytest-reportlog.
affects: all
Upgrade
Version history
0.1.1latest on PyPI · released Nov 14, 2024
Audit
Dependencies
pytestrequiredPlugin requires pytest to run
Agent activity
4 hits · last 30 days
node
4
Resources
pytest-xml — pip install pytest-xml · libregistry