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.fixUpgrade 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.fixUse --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.fixConsider 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