[GRADLE-847] TestNG tests fails if they throw exceptions (even expected) Created: 09/Mar/10 Updated: 04/Jan/13 Resolved: 24/Nov/10 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 0.9-rc-1 |
Type: | Bug | ||
Reporter: | Tomek Kaczanowski | Assignee: | Adam Murdoch |
Resolution: | Fixed | Votes: | 0 |
Attachments: | testng.zip |
Description |
Execution of such this test will FAIL: import org.testng.annotations.Test; public class SimpleTest { @Test(expectedExceptions = IllegalStateException.class) } gradle clean test FAILURE: Build failed with an exception.
BUILD FAILED Total time: 12.168 secs The html report will show all green (and rightly so). It is broken in gradle-0.9-20100309130436+0300-bin but worked fine gradle-0.9-20100302224259+0100 (or some previous version, not sure about that). See attached project. |