Community
Participate
Working Groups
Build Identifier: 20100617-1415 in Helios, JUnit's "Activate on Error/Failure Only" no longer works. Instead, the JUnit tab is always activated. This happens whether in Fast View or not. This happens with JUnit 3 and 4. Expected: when "Activate on Error/Failure Only" is checked and the tests pass, the JUnit dialog should not get focused. If in Fast View, the panel should not be displayed. Reproducible: Always Steps to Reproduce: 1. in the JUnit UI, in the upper right corner click the 'down arrow' icon, and check "Activate on Error/Failure Only" 2. Run a JUnit test where every test passes 3. see the JUnit UI activates (a.k.a. gets focus, displays)
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!