[GRADLE-2454] Interpret tests that throw org.junit.internal.AssumptionViolatedException as "skipped" Created: 29/Aug/12 Updated: 21/Mar/13 Resolved: 24/Jan/13 | 
|
| Status: | Resolved | 
| Project: | Gradle | 
| Affects Version/s: | 1.0, 1.1 | 
| Fix Version/s: | 1.5-rc-1 | 
| Type: | Improvement | ||
| Reporter: | Peter Niederwieser | Assignee: | Unassigned | 
| Resolution: | Fixed | Votes: | 7 | 
| Description | 
| 
 Tools like Maven and IntelliJ interpret tests that throw org.junit.internal.AssumptionViolatedException as "skipped", which seems sensible. Gradle currently interprets them as "passed". We should probably change this.  | 
| Comments | 
| Comment by AleWir [ 16/Jan/13 ] | 
| 
 Hi, Will assumption violation provide a log in report the same way assertion error does? Just for additional info:  | 
| Comment by AleWir [ 21/Mar/13 ] | 
| 
 It is still not working correctly in gradle-1.5-rc-2. 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: Otherwise tools like Hudson don't see any skipped tests during reports/charts generation. Therefore the change that was done is unfortunately not yet very useful. See: http://stackoverflow.com/questions/4922867/junit-xml-format-specification-that-hudson-supports  | 
| Comment by AleWir [ 21/Mar/13 ] | 
| 
 Moreover, currently ignored tests are marked with weird tag 'ignored-testcase' and again, according to schema, it should be 'skipped' tag inside 'testcase' tag:  |