[GRADLE-974] Gradle/JUnit does not capture failing test Created: 11/Jun/10 Updated: 04/Jan/13 Resolved: 05/Dec/10 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.9 |
Fix Version/s: | 0.9 |
Type: | Bug | ||
Reporter: | Misha Koshelev | Assignee: | Adam Murdoch |
Resolution: | Fixed | Votes: | 1 |
Description |
Perhaps this is expected but it certainly had me stumped for a few You will only get the @After failure in the report (e.g., if there is an Here is sample code: import org.junit.After class MyTestTest { @Test public void testLogin() { println "Before asdf" asdf println "After asdf" }@After public void logoutOfMyTest() { println "After" blah }} You will see the blah error but not the asdf error. This looks quite simple, but when there is an assert somewhere in a call Thank you! |
Comments |
Comment by Peter Niederwieser [ 11/Jun/10 ] |
I don't think it's to be expected. Both IDEA and Maven 2 (command line + report) show both errors. |
Comment by Hans Dockter [ 25/Jun/10 ] |
@Adam I'm wondering if this is fixed? |