https://github.com/codecov/test-results-parser
https://github.com/codecov/test-results-parser
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codecov/test-results-parser
- Owner: codecov
- License: other
- Created: 2023-10-31T19:45:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-26T08:15:06.000Z (7 months ago)
- Last Synced: 2025-08-17T18:59:14.797Z (5 months ago)
- Language: Rust
- Size: 456 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This project requires `maturin`, it can be installed using pip:
```pip install maturin```
For development, to rebuild the rust portion of the library and install the library in your local venv (I believe this _requires_ a venv in order to work), run:
```maturin develop```
To use the library just import it after installing:
```import testing_result_parsers```
There's an example of this in the tests directory.
The CI uses the maturin-action to build wheels and an sdist
The version of the wheels built are determined by the value of the version in the cargo.toml
There are 2 parsing functions currently implemented:
- `parse_junit_xml`: this parses `junit.xml` files
This function takes the path to the file to parse as an arg and returns a list of `Testrun` objects.
The `Testrun` objects look like this:
```
Outcome:
Pass,
Failure,
Error,
Skip
Testrun:
name: str
outcome: Outcome
duration: float
testsuite: str
```
- `parse_raw_upload`: this parses an entire raw test results upload
this function takes in the raw upload bytes and returns a message packed list of Testrun objects