This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Right now I when I want to use the integrated debugger, I have to run the entire test. I would like to be able to run debug on a single method of the test. For example, if I had the following test: class MyTest < Test::Unit::TestCase def test_action_1 # ... end def test_action_2 # ... end end I would like to be able to right-click on 'test_action_2' and have the following options: ... ---------------------- Run File Test File Debug File Run test_action_2 Debug test_action_2 New Watch... Toggle Line Breakpoint ---------------------- ... This would be an immensely helpful feature.
This feature was added in the optional RSpec module (it works not only for RSpec tests but Test::Unit tests as well). It lives in the optional module since this functionality was added after feature freeze (WAY after feature freeze). You'll find it listed under October 12th here: http://wiki.netbeans.org/wiki/view/RubyRecentChanges The RSpec module is in included in the build on http://deadlock.netbeans.org/hudson/job/ruby/ It doesn't work as context menu actions in the navigator; you press a keybinding (which you have to assign) to run/debug the test around the caret.
*** Issue 129920 has been marked as a duplicate of this issue. ***
The RSpec module has been part of trunk for a while already, so I'm closing this issue. The default keybindings (on Linux) are alt-shift-f6 (run focused test) and alt-shift-f5 (debug).