Skip to content

Commit cc76ca7

Browse files
Merge pull request #63 from codecov/joseph/parse-raw-upload
feat: add parse_raw_upload
2 parents 0a663e5 + d3a4509 commit cc76ca7

File tree

29 files changed

+918
-598
lines changed

29 files changed

+918
-598
lines changed

Cargo.lock

Lines changed: 116 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ indexmap = "2.6.0"
1414
pyo3 = { version = "0.23.3", features = ["abi3-py312", "anyhow"] }
1515
quick-xml = "0.37.1"
1616
regex = "1.11.1"
17-
rinja = "0.3.5"
1817
serde = { version = "1.0.215", features = ["derive"] }
1918
serde_json = "1.0.133"
19+
rinja = "0.3.5"
20+
base64 = "0.22.1"
21+
flate2 = "1.0.35"
2022
smallvec = "2.0.0-alpha.7"
2123
thiserror = "2.0.3"
2224
watto = { git = "https://github.com/getsentry/watto", features = [
@@ -28,10 +30,12 @@ watto = { git = "https://github.com/getsentry/watto", features = [
2830
[dev-dependencies]
2931
criterion = { version = "2.7.2", package = "codspeed-criterion-compat" }
3032
rand = { version = "0.8.5", features = ["small_rng"] }
33+
insta = { version = "1.42.0", features = ["glob", "yaml"] }
3134

3235
[profile.release]
3336
debug = 1
3437

38+
3539
[[bench]]
3640
name = "binary"
3741
harness = false

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ The CI uses the maturin-action to build wheels and an sdist
1313

1414
The version of the wheels built are determined by the value of the version in the cargo.toml
1515

16-
There are 2 parsing function currently implemented:
16+
17+
There are 2 parsing functions currently implemented:
1718

1819
- `parse_junit_xml`: this parses `junit.xml` files
19-
- `parse_pytest_reportlog`: this parses files produced by the `pytest-reportlog` extension
2020

21-
Both these functions take the path to the file to parse as an arg and return a list of `Testrun` objects.
21+
This function takes the path to the file to parse as an arg and returns a list of `Testrun` objects.
2222

2323
The `Testrun` objects look like this:
24+
2425
```
2526
Outcome:
2627
Pass,
@@ -33,4 +34,8 @@ Testrun:
3334
outcome: Outcome
3435
duration: float
3536
testsuite: str
36-
```
37+
```
38+
39+
- `parse_raw_upload`: this parses an entire raw test results upload
40+
41+
this function takes in the raw upload bytes and returns a message packed list of Testrun objects

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ dev-dependencies = [
2121
"pytest-cov>=6.0.0",
2222
"pytest-reportlog>=0.4.0",
2323
"maturin>=1.7.4",
24+
"pytest-insta>=0.3.0",
2425
]

0 commit comments

Comments
 (0)