Problem:
runtime errors (throw new Error()) in tested methods are ignored by
infinitest. Tests are reported as succeeding even though they
don't.
Expected Behavior:
Uncaught exceptions -- including runtime errors -- should cause
tests to blow up.
Steps to reproduce:
Try creating these two classes. Infinitest will say the test
passes, while Eclipse's junit test runner shows the failure.
public class ClassToTest {
public void doTestWithError() {
throw new Error();
}
}
public class TestHarness {
@Test
public void testThatErrorsAreHandled() {
(new ClassToTest()).doTestWithError();
}
}