Community
Participate
Working Groups
Tests that are organized into static inner classes when using the test-runner Enclosed are being executed twice when using the Run As -> JUnit Test at the package level or higher. In order to replicate the bug, create a class using the following code: import static org.junit.Assert.assertEquals; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith; @RunWith(Enclosed.class) public class IAmATestOuter { public static class IAmATestInner { @Test public void test() { assertEquals(1, 1); } } } Run the test by right clicking the class; selecting IAmATestOuter or IAmATestInner will run the test once. Run the test by right clicking the package; the test is run twice.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
Kalyan, please check whether this is still an issue.
(In reply to Dani Megert from comment #2) > Kalyan, please check whether this is still an issue. This is still an issue.