How do I halt Junit from inside eclipse?
I'm running helium eclipse on Fedora 15 (x86_64). When I run JUnit to run the tests for a class, there's no button to stop execution. One of my tests is out of control. Eventually GC fails and eclipse hangs. I'd like to take it out开发者_运维技巧 of its misery long before that.
Set breakpoint in your code.
Right-click the Test file and select the Debug As -> JUnit Test
Open the "Debug" perspective (from the Window menu pick "Open Perspective" then "Debug") and you should see an active process running. Right-click it and select "terminate"
You could keep the console view open. There is a red stop button that can be used to terminate the running instance.
精彩评论