The `test-results-parser` Python library provides functionalities to parse test result files, primarily JUnit XML. It offers two main parsing functions: `parse_junit_xml` for JUnit XML files and `parse_raw_upload` for raw test result uploads. This library is largely written in Rust with Python bindings, focusing on efficient test result processing for integration with platforms like Codecov. The current version is 0.6.1, and its release cadence appears irregular.
pip install test-results-parserVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to parse a JUnit XML file using `testing_result_parsers.parse_junit_xml`. It creates a dummy XML file, parses it, and then prints the name, outcome, and duration of each test run. The `parse_junit_xml` function returns a list of `Testrun` objects.
Always use `import testing_result_parsers` after installation.
Understand the specific scope of this library; if advanced JUnit XML manipulation (e.g., creating, merging, custom elements) is needed, consider `junitparser`.
For development, install `maturin` (`pip install maturin`) and a Rust toolchain, then use `maturin develop`.
No dependency data recorded yet.