| Summary: | [JUnit] JUnit -> Activate on Error/Failure Only not working | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Brad Cupit <bradcupit> | ||||
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert, deepakazad, dirk.olmes, jason.brittain, raksha.vasisht | ||||
| Version: | 3.6 | Flags: | daniel_megert:
review+
|
||||
| Target Milestone: | 3.6.1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Brad Cupit
Created attachment 176975 [details]
Fix
This patch restores the 3.5 behavior. Committed to HEAD.
Test cases:
package testing;
import org.junit.Test;
public class Good {
@Test
public void good() throws Exception {
System.out.println("Running good...");
Thread.sleep(3000);
System.out.println("Done.");
}
}
package testing;
import static org.junit.Assert.fail;
import org.junit.Test;
public class Bad {
@Test
public void bad() throws Exception {
System.out.println("Running bad...");
Thread.sleep(3000);
System.out.println("Done.");
fail("too bad");
}
}
package testing;
import org.junit.Test;
public class GoodFast {
@Test
public void good() throws Exception {
System.out.println("Running good.");
}
}
package testing;
import static org.junit.Assert.fail;
import org.junit.Test;
public class BadFast {
@Test
public void bad() throws Exception {
System.out.println("Running bad.");
fail("too bad");
}
}
Dani, please approve for 3.6.1. The fix is good for 3.6.1 but we also have to fix bug 323134 for 3.6.1 since we messed up the action state saving on shutdown in 3.6. Branched org.eclipse.jdt.junit and released the fix for 3.6.1. Starting verification... Verified on Windows 7 using M20100825-0800. Verified for 3.6.1 RC2 with M20100825-0800 on Win Xp. Thanks for the fix guys! |