In the case of a test failure you can follow these steps to debug it:
If you have the "keep alive" preference option set and your target VM supports hot code replacement you can fix the code and rerun the test without restarting the full test run.
Note: to set the preference, open the Launch configuration dialog, select the launch configuration for your test and select the Keep JUnit running after a test run when debugging checkbox.