Read JUnit/XUnit/MSTest XML files and map them to Python objects. Current version 1.9.12, released irregularly.
pip install xunitparserxVerified import paths — ran on the pinned version, not inferred.
Basic usage: parse an XUnit XML file and iterate over test cases.
Always accept both: suite, report = parse(...). Check report for None if needed.
Validate XML against the schema before parsing. Use lxml or xml.etree for pre-validation.
Use 'test.classname' and 'test.methodname' (they remain consistent).
Run 'pip install xunitparserx'.
Open the file first: with open('file.xml') as f: suite, report = parse(f)No dependency data recorded yet.