nextest-rs / quick-junit

A serializer for JUnit reports, used by cargo-nextest
https://docs.rs/quick-junit
Apache License 2.0
2 stars 0 forks source link

Status of XML Deserialization in `quick-junit` #9

Open nuke-web3 opened 10 months ago

nuke-web3 commented 10 months ago

This crate does not currently support deserializing JUnit XML. (PRs are welcome!)

While nextest-rs/nextest#20 is still a work in progress, the JUnit XML format is usable or machine processing. Although, this would be greatly simplified with a (serde compatible :heart:) deserializer crate.

Is there any progress on that front? Sorry if I missed it, I am not able to see any description of the blockers and/or requirements to that being implemented. I would hope this is something of a good first issue that perhaps would not bee too difficult to do :crossed_fingers:.

sunshowers commented 10 months ago

Hi @NukeManDan --

This was never done. I think someone needs to just put in the work to write a deserializer, and you're definitely welcome to do so.

serde and XML aren't fully compatible sadly, as serde's data model isn't detailed enough. Check out https://docs.rs/quick-xml/latest/quick_xml/de/ for some documentation. That's why I ended up hand-writing the serializer. You're welcome to do it either way though.

sunshowers commented 5 months ago

By the way, nextest can also now produce libtest-like JSON output with an experimental feature: https://nexte.st/book/run-machine-readable.html