Current JUnit schema used by JunitXml.TestLogger is several years old. Here are the various formats used today.
- Jenkins Junit plugin docs are here. JUnit 5 project uses the Jenkins XSD from there.
- Gitlab JUnit parser (see attached junit example from issue) and CircleCI have added few additional elements to the schema for better reporting (reference). E.g.
file in testcase element
- Testmo provides a comparison of various possibilities in the schema here.
Proposal
Work In Progress. Kindly share your inputs.
Support a Schema logger configuration with one of junit, jenkins. Few differences:
jenkins allows non-empty properties node
jenkins allows per test case system-out/err messages
jenkins may be better suited for attachments support?
TODO: review if there any other differences between both?
Future
If needed, we can extend the ReportFormat=custom add the following capabilities
Related issues
Current JUnit schema used by JunitXml.TestLogger is several years old. Here are the various formats used today.
fileintestcaseelementProposal
Support a
Schemalogger configuration with one ofjunit, jenkins. Few differences:jenkinsallows non-emptypropertiesnodejenkinsallows per test case system-out/err messagesjenkinsmay be better suited for attachments support?TODO: review if there any other differences between both?
Future
If needed, we can extend the
ReportFormat=customadd the following capabilitiesfileattribute intestcasepropertiesintestcaseto log relevant info like test category, description etc. E.g. NUnit Description option for Junit test reports junit.testlogger#48Related issues