'Is there a scala (or java) library for reading junit xml reports

I want to read the junit xml reports that I generate from my various test pipelines so that I can insert the results into a database so I can corelate test results across branches and time using grafana. I use gitlab and their analytics for test results lacks those features.

Before I go doing this myself I got the feeling that there should be some scala or java library for reading the junit xml reports into case classes since junit is so popular. Does anyone know of a library for reading the junit reports?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source