Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update NUnitXml.xslt to emit properties element before reason/failure (…
…#1797) The NUnit 2.5 schema at http://nunit.org/files/testresult_schema_25.txt specifies that the test-case element should look like this: ```xml <xs:complexType name="test-caseType"> <xs:sequence> <xs:element name="categories" type="categoriesType" minOccurs="0" maxOccurs="1" /> <xs:element name="properties" type="propertiesType" minOccurs="0" maxOccurs="1" /> <xs:choice> <xs:element name="failure" type="failureType" minOccurs="0" /> <xs:element name="reason" type="reasonType" minOccurs="0" /> </xs:choice> </xs:sequence> <xs:attribute name="name" type="xs:string" use="required" /> ... ``` The usage of xs:sequence means categories, properties and failure/reason elements need to be emitted in exactly that order. Currently NUnitXml.xslt however emits the properties _after_ the reason element. This fixes the xslt to emit properties in the expected order.
- Loading branch information