Skip to content

Commit

Permalink
Add optional testcase attributes back
Browse files Browse the repository at this point in the history
These attributes were present from 2014-2018 on the testcase element.
Tools other than maven surefire or ant tasks use the XSD file to build a XML report file that xunit plugin can read.

https://github.com/jenkinsci/xunit-plugin/blob/14c6e39c38408b9ed6280361484a13c6f5becca7/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd

xunit 2.2.4 removed those optional attributes.

`unittest-xml-reporting` is a python library that tries to generate xml report using that older schema definition.
xmlrunner/unittest-xml-reporting#201
  • Loading branch information
dnozay authored Feb 10, 2020
1 parent 8e946f9 commit 3864f10
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ THE SOFTWARE.
<xs:element ref="system-err"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="file" type="xs:string" use="optional"/>
<xs:attribute name="line" type="xs:string" use="optional"/>
<xs:attribute name="timestamp" type="xs:string" use="optional"/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="time" type="xs:string"/>
<xs:attribute name="classname" type="xs:string"/>
Expand Down

0 comments on commit 3864f10

Please sign in to comment.