<!-- Please provide us the version of JUnit you are using and, if possible, a failing unit test with your bug report. Don't forget to describe the rationale for this issue (e.g. expected vs. actual behavior). Please also mention where it's a regression compared to a previous version. --> ## Steps to reproduce [Project](https://github.com/man85/wrong_junit_xml_report) to reproduce. Run `run-until-fail.sh` that will check correctness of `open-test-report.xml` after running `./gradlew test` <!-- Please insert a code snippet or a link to another repo along with instructions how to reproduce the issue here. The example should be minimal, complete and verifiable (see https://stackoverflow.com/help/mcve). --> Expected correct `open-test-report.xml` ## Context - JUnit Platform: 5.13.4 - Build Tool: Gradle 8.14.1 ## Deliverables Wrong `open-test-report.xml`: ``` build/test-results/test/open-test-report.xml:6: parser error : expected '>' ```