开发者

How do I halt Junit from inside eclipse?

开发者 https://www.devze.com 2023-03-27 01:36 出处:网络
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.

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.


  1. Set breakpoint in your code.

  2. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消