Project: JDT
Bug 210921 [JUnit] RunListener testRunFinished not fired in Eclipse
Reported: 2007-11-26 08:39:41 | Status: resolved fixed

Build ID: 3.3.1.1 Steps To Reproduce: I have written a custom Runner which can be used by @Runwith() In the runner I attach a runlistener. In that runlistener the 'testRunFinished' method is not called during a junit run form eclipse. public static void main(String[] args) { JUnitCore core= new JUnitCore(); core.run(TestSuite.class); } When you do it in this way at the end the 'testRunFinished' is called, but running junit tests from Eclipse it is not called. I think this event is fired against the initial list of listeners, but I add this listener during the run, so it is not part of the initial listeners. I will attach some test files More information:

Files changed in fix:
org.eclipse.jdt.junit4.runtime/src/org/eclipse/jdt/internal/junit4/runner/JUnit4TestReference.java