{"id":27307,"library":"pytest-xml","title":"pytest-xml","description":"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.","status":"active","version":"0.1.1","language":"python","source_language":"en","source_url":"https://github.com/anogowski/pytest-xml","tags":["pytest","plugin","xml","reporting","test-output"],"install":[{"cmd":"pip install pytest-xml","lang":"bash","label":"pip install"}],"dependencies":[{"reason":"Plugin requires pytest to run","package":"pytest","optional":false}],"imports":[{"note":"Plugins are auto-discovered; explicit import not required and may cause import errors.","wrong":"import pytest_xml","symbol":"pytest-xml","correct":"pytest-xml is a plugin; no import needed. Enable via --xml or pytest.ini."},{"note":"No public Python API; only CLI option.","wrong":"from pytest_xml import *","symbol":"xml_plugin","correct":"No symbol to import; use pytest --xml=output.xml"}],"quickstart":{"code":"# Run tests with XML output\npytest --xml=results.xml","lang":"bash","description":"Generate an XML report for test results. The --xml flag outputs results to the specified file."},"warnings":[{"fix":"Upgrade Python to 3.11+ or avoid using this plugin.","message":"The plugin only supports Python >=3.11. Older Pythons will cause installation failures.","severity":"gotcha","affected_versions":"<0.1.1 (no older versions published)"},{"fix":"Use --junitxml if JUnit format is needed (built-in pytest flag).","message":"No --junitxml conflict? pytest-xml outputs simple XML structure, not JUnit format. Do not expect JUnit attributes.","severity":"breaking","affected_versions":"all"},{"fix":"Consider using built-in --junitxml or a more maintained plugin like pytest-reportlog.","message":"The project has no recent updates; may be abandoned. No issue tracker activity.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Do not import; install plugin and use pytest --xml=file.xml","cause":"Attempting to import the plugin as a Python module instead of using CLI flag.","error":"ModuleNotFoundError: No module named 'pytest_xml'"},{"fix":"Upgrade Python to 3.11 or later.","cause":"Python version <3.11; package requires >=3.11.","error":"ERROR: Could not find a version that satisfies the requirement pytest-xml (from versions: none)"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}