[GRADLE-2731] JUnit AssumptionViolationException is not described properly in XML Created: 02/Apr/13  Updated: 15/Apr/14  Resolved: 15/Apr/14

Status: Resolved
Project: Gradle
Affects Version/s: 1.5-rc-2
Fix Version/s: 1.12-rc-1

Type: Bug
Reporter: AleWir Assignee: Luke Daley
Resolution: Fixed Votes: 4

Known Issue Of:


There was a fix made to handle JUnit Assumptions - GRADLE-2454.
Unfortunately it is still not working correctly...

In XML test report that is created by Gradle, it should tot up the number of skipped tests and place it in 'skipped' attribute of the 'testsuite' tag, according to schema. See: http://stackoverflow.com/questions/4922867/junit-xml-format-specification-that-hudson-supports

<xs:element name="testsuite">
<xs:attribute name="tests" type="xs:string" use="required"/>
<xs:attribute name="failures" type="xs:string" use="optional"/>
<xs:attribute name="errors" type="xs:string" use="optional"/>
<xs:attribute name="skipped" type="xs:string" use="optional"/>

Additionally, ignored tests are marked with weird tag 'ignored-testcase' and again, according to schema, it should be 'skipped' tag inside 'testcase' tag:
<xs:element name="testcase">
<xs:element ref="skipped" minOccurs="0" maxOccurs="1"/>
And this is what is actually taken into account by Hudson. Otherwise tools like Hudson don't see any skipped tests during reports/charts generation so the recent fix is not fully functional.

Generated at Wed Jun 30 12:29:57 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.