pytest-xml

raw JSON →
0.1.1 verified Fri May 01 auth: no python

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
error ModuleNotFoundError: No module named 'pytest_xml'
cause Attempting to import the plugin as a Python module instead of using CLI flag.
fix
Do not import; install plugin and use pytest --xml=file.xml
error ERROR: Could not find a version that satisfies the requirement pytest-xml (from versions: none)
cause Python version <3.11; package requires >=3.11.
fix
Upgrade Python to 3.11 or later.
gotcha The plugin only supports Python >=3.11. Older Pythons will cause installation failures.
fix Upgrade Python to 3.11+ or avoid using this plugin.
breaking No --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).
deprecated The 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.

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