Project: JDT
Bug 141994 [JUnit] Runner does not find any test case when a class fails loading
Reported: 2006-05-16 09:52:40 | Status: verified fixed

* Symptoms ---------- When a test case class fails to load (in my case, there was an exception in the static initializer) the "Run all tests..." launch configuration does nothing at all. * Steps to reproduce -------------------- 1) Create a new empty Java project 2) Create a new JUnit test case TestDate, adding JUnit to the class path 3) Replace the source by the following import java.text.SimpleDateFormat; import junit.framework.TestCase; public class TestDate extends TestCase { private static final SimpleDateFormat FORMAT = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss"); public void testThing() { assertNull(null); } } 4) Define a Run configuration with "Run all test in the following project" 5) Try running this configuration * Result -------- The run exits almost immediately with 0 test cases found and executed. * Expected outcome ------------------ At least an error message telling me some class could not be loaded

Files changed in fix:
org.eclipse.jdt.junit.runtime/src/org/eclipse/jdt/internal/junit/runner/RemoteTestRunner.java