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.
If you double click on a failed Shoulda test (in the left pane of Test Results) it normally navigates you to the failed assert line. With Shoulda tests it opens the file "test_process.rb" or "validations.rb".
Could you please attach an example test case where this happens? In my tests it works as expected, but I have only a handful of shoulda tests that I use for testing the support.
I cannot reproduce this now.... Sorry!
No prob, just ping here when you run into this again.
Found it.... should "test" do assert some_var end some_var is not defined so its an error... double click on the failed test result it opens "test_process.rb". Tested with: def test_me assert some_var end and it does navigate within the test file, which means its specific to shoulda... Will keep looking for issue that causes "validation.rb" file to open....
extra: Found another (probably related) controller test:- should "test" do get :unknown_action end Run test and get.. ActionController::RoutingError: No route matches {:controller=>"a_controller", :action=>"unknown_action"} Double click on failed test result opens "route_set.rb"
Thanks, I'm able to reproduce now.
Should be fixed now in dc11ff7f3931, it'll however take some time before I can push it as we're just creating a clone for M2 (there'll be a notification here when the fix makes it to the build). While testing I noticed some problems with navigating to passed shoulda tests though, so I'm leaving this open until I resolve those too.
Hi Erno, I added #158581 a couple of days ago with another navigation issue.
Ah, I had missed that somehow. I'll take a look at it.
Integrated into 'main-golden', will be available in build *200902220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/dc11ff7f3931 User: Erno Mononen <emononen@netbeans.org> Log: #158147: Shoulda test navigation
Apparently I forgot to mark this as fixed (should be fixed by dc11ff7f3931).