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.

Bug 112254 - stack trace links not clickable when you run 'test project'
Summary: stack trace links not clickable when you run 'test project'
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Testing (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-07 23:35 UTC by jamespb
Modified: 2007-08-29 20:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jamespb 2007-08-07 23:35:58 UTC
Here's the output of 'test project' - the link in the line:

test_snark(RestPhoneTest::PhoneRequestRecordTest) [./test/unit/http_phone/asterisk_cmd_test.rb:76]:

isn't clickable.

Nothing special about that test - it's just

    def test_snark
      assert false
    end



Product Version: NetBeans Ruby IDE 070807 Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows Vista
version 6.0 running on x86; Cp1252; en_US (nbrubyide) Userdir: C:\Users\James\AppData\Roaming\.nbrubyide\dev

(in C:/InstantRails/rails_apps/rfs)

C:/InstantRails/ruby/bin/ruby -Ilib;test
"C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/unit/accountant_test.rb"
"test/unit/activity_alert_test.rb" "test/unit/activity_mailer_test.rb" "test/unit/asterisk_call_file_test.rb"
"test/unit/call_session_test.rb" "test/unit/cepstral_test.rb" "test/unit/customer_phone_menu_test.rb"
"test/unit/customer_test.rb" "test/unit/default_call_menu_test.rb" "test/unit/http_phone/asterisk_cmd_test.rb"
"test/unit/http_phone/asterisk_response_test.rb" "test/unit/http_phone/asterisk_test.rb" "test/unit/http_phone_test.rb"
"test/unit/named_arguments/class_settings_mixin_test.rb" "test/unit/named_arguments/hash_extended_tools_test.rb"
"test/unit/named_arguments/method_extensions_test.rb" "test/unit/named_arguments_test.rb"
"test/unit/phone_number_test.rb" "test/unit/piggy_bank_test.rb" "test/unit/piggy_bank_transaction_test.rb"
"test/unit/rest_phone/array_of_ranges_test.rb" "test/unit/rest_phone/call_info/inbound_test.rb"
"test/unit/rest_phone/call_info/outbound_test.rb" "test/unit/rest_phone/call_info_test.rb"
"test/unit/rest_phone/dummy_asterisk_server_test.rb" "test/unit/rest_phone/dummy_line_server_test.rb"
"test/unit/rest_phone/phone_action/phone_action_subtypes_test.rb" "test/unit/rest_phone/phone_action_test.rb"
"test/unit/rest_phone/phone_audio_script_test.rb" "test/unit/rest_phone/phone_call_test.rb"
"test/unit/rest_phone/phone_event_test.rb" "test/unit/rest_phone/phone_logger_test.rb"
"test/unit/rest_phone/phone_menu_builder_test.rb" "test/unit/rest_phone/phone_menu_condition_test.rb"
"test/unit/rest_phone/phone_menu_test.rb" "test/unit/rest_phone/phone_number/north_america_test.rb"
"test/unit/rest_phone/phone_number_support_test.rb" "test/unit/rest_phone/phone_number_test.rb"
"test/unit/rest_phone/phone_prompt_test.rb" "test/unit/rest_phone/phone_request_test.rb"
"test/unit/rest_phone/remote_session_manager_test.rb" "test/unit/rest_phone/schedule_test.rb"
"test/unit/rest_phone_utilities/array_of_ranges_test.rb" "test/unit/rest_phone_utilities/deep_xml_test.rb"
"test/unit/rest_phone_utilities/factory_create_method_test.rb" "test/unit/rest_phone_utilities/utilities_test.rb"
"test/unit/sound_collection_test.rb" "test/unit/sound_item/file_system_test.rb" "test/unit/sound_item/s3_test.rb"
"test/unit/sound_item_test.rb" "test/unit/user_call_log_test.rb" "test/unit/user_call_request_test.rb" 

Loaded suite C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader

Started

.............................................................................................................................................................................................................................................F..............chmod
100644 

chmod 100644 

C:/InstantRails/ruby/bin/ruby -Ilib;test
"C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb"
"test/functional/account_controller_test.rb" "test/functional/activity_alert_controller_test.rb"
"test/functional/content_controller_test.rb" "test/functional/customers_controller_test.rb"
"test/functional/customer_phone_menus_controller_test.rb" "test/functional/help_controller_test.rb"
"test/functional/money_transactions_controller_test.rb" "test/functional/paypal_controller_test.rb"
"test/functional/phone_call_session_controller_test.rb" "test/functional/phone_number_assignments_controller_test.rb"
"test/functional/user_call_logs_controller_test.rb" "test/functional/user_call_requests_controller_test.rb" 

.......

Finished in 11.37 seconds.



  1) Failure:

test_snark(RestPhoneTest::PhoneRequestRecordTest) [./test/unit/http_phone/asterisk_cmd_test.rb:76]:

<false> is not true.



259 tests, 427 assertions, 1 failures, 0 errors

Loaded suite C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader

Started

....................................................

Finished in 3.997 seconds.



52 tests, 106 assertions, 0 failures, 0 errors

C:/InstantRails/ruby/bin/ruby -Ilib;test
"C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/integration/daemons_test.rb"
"test/integration/external_tools_test.rb" "test/integration/site_interaction_stories_test.rb" 

Loaded suite C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader

Started

..................
Finished in 0.308 seconds.

18 tests, 7 assertions, 0 failures, 0 errors
Comment 1 jamespb 2007-08-07 23:37:50 UTC
If you run the file by itself, the links work fine - the difference seems to be a full path:

Loaded suite C:/InstantRails/rails_apps/rfs/test/unit/http_phone/asterisk_cmd_test

Started

........F.
Finished in 0.156 seconds.

  1) Failure:
test_snark(RestPhoneTest::PhoneRequestRecordTest)
[C:/InstantRails/rails_apps/rfs/test/unit/http_phone/asterisk_cmd_test.rb:76]:
<false> is not true.

10 tests, 14 assertions, 1 failures, 0 errors
Comment 2 jamespb 2007-08-07 23:40:32 UTC
I'm now running Edge Rails - I'm wondering if the error format is slightly different than 1.2.3?  (I have a feeling the
[] are new, but I haven't looked at current rails lately)
Comment 3 Torbjorn Norbye 2007-08-22 05:01:01 UTC
Hi Martin, since you just fixed that other RegexpOutputRecognizer bug, can you take a look at this P2?
Comment 4 Martin Krauskopf 2007-08-22 06:50:49 UTC
Yup, there are more problems like this. I'm encountering similar when testing debugger with verbose mode. Bunch of
non-clickable link. We need better RE for file recognition. E.g. something from http://regexlib.com/Search.aspx?k=path.
Comment 5 Martin Krauskopf 2007-08-24 10:04:36 UTC
New recognizers recognize more patterns like the one mentioned here + others. Hopefully without more false positives and
without (too much) regressions. Might be tuned. I would like to get rid of one huge recognizer with more specific ones.
Let me know of any problems in this area, thanks.

Commit:

Initial attempt to get rid of one huge recognizer (keeping as a fallback), more to be done.
- recognizes more cases
- RAILS_ROOT will be fixed soon

projects/src/org/netbeans/modules/ruby/rubyproject/api/RubyExecution.java;
new revision: 1.7; previous revision: 1.6
projects/src/org/netbeans/modules/ruby/rubyproject/AutoTestSupport.java;
new revision: 1.5; previous revision: 1.4
projects/src/org/netbeans/modules/ruby/rubyproject/RSpecSupport.java;
new revision: 1.4; previous revision: 1.3
projects/src/org/netbeans/modules/ruby/rubyproject/RakeSupport.java;
new revision: 1.6; previous revision: 1.5
projects/src/org/netbeans/modules/ruby/rubyproject/RubyActionProvider.java;
new revision: 1.8; previous revision: 1.7
projects/src/org/netbeans/modules/ruby/rubyproject/execution/ExecutionDescriptor.java;
new revision: 1.2; previous revision: 1.1
projects/src/org/netbeans/modules/ruby/rubyproject/execution/OutputProcessor.java;
new revision: 1.2; previous revision: 1.1
projects/src/org/netbeans/modules/ruby/rubyproject/execution/RegexpOutputRecognizer.java;
new revision: 1.6; previous revision: 1.5
projects/test/unit/src/org/netbeans/modules/ruby/rubyproject/execution/RegexpOutputRecognizerTest.java;
new revision: 1.7; previous revision: 1.6
railsprojects/src/org/netbeans/modules/ruby/railsprojects/RailsActionProvider.java;
new revision: 1.10; previous revision: 1.9
railsprojects/src/org/netbeans/modules/ruby/railsprojects/server/RailsServer.java;
new revision: 1.6; previous revision: 1.5
Comment 6 jamespb 2007-08-24 18:03:12 UTC
Not fixed in 3431 - ./test/unit/rest_phone/phone_call_test.rb isn't clickable

(in C:/InstantRails/rails_apps/rfs)

C:/InstantRails/ruby/bin/ruby -Ilib;test
"C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/unit/accountant_test.rb"
"test/unit/activity_alert_test.rb" "test/unit/activity_mailer_test.rb" "test/unit/asterisk_call_file_test.rb"
"test/unit/call_session_test.rb" "test/unit/cepstral_test.rb" "test/unit/customer_phone_menu_test.rb"
"test/unit/customer_test.rb" "test/unit/http_phone/asterisk_cmd_test.rb"
"test/unit/http_phone/asterisk_response_test.rb" "test/unit/http_phone/asterisk_test.rb" "test/unit/http_phone_test.rb"
"test/unit/named_arguments/class_settings_mixin_test.rb" "test/unit/named_arguments/hash_extended_tools_test.rb"
"test/unit/named_arguments/method_extensions_test.rb" "test/unit/named_arguments_test.rb"
"test/unit/phone_number_test.rb" "test/unit/piggy_bank_test.rb" "test/unit/piggy_bank_transaction_test.rb"
"test/unit/rest_phone/array_of_ranges_test.rb" "test/unit/rest_phone/call_info/inbound_test.rb"
"test/unit/rest_phone/call_info/outbound_test.rb" "test/unit/rest_phone/call_info_test.rb"
"test/unit/rest_phone/dummy_asterisk_server_test.rb" "test/unit/rest_phone/dummy_line_server_test.rb"
"test/unit/rest_phone/phone_action/phone_action_subtypes_test.rb" "test/unit/rest_phone/phone_action_test.rb"
"test/unit/rest_phone/phone_audio_script_test.rb" "test/unit/rest_phone/phone_call_test.rb"
"test/unit/rest_phone/phone_event_test.rb" "test/unit/rest_phone/phone_logger_test.rb"
"test/unit/rest_phone/phone_menu_builder_test.rb" "test/unit/rest_phone/phone_menu_condition_test.rb"
"test/unit/rest_phone/phone_menu_test.rb" "test/unit/rest_phone/phone_number/north_america_test.rb"
"test/unit/rest_phone/phone_number_support_test.rb" "test/unit/rest_phone/phone_number_test.rb"
"test/unit/rest_phone/phone_prompt_test.rb" "test/unit/rest_phone/phone_request_test.rb"
"test/unit/rest_phone/remote_session_manager_test.rb" "test/unit/rest_phone/schedule_test.rb"
"test/unit/rest_phone_utilities/array_of_ranges_test.rb" "test/unit/rest_phone_utilities/deep_xml_test.rb"
"test/unit/rest_phone_utilities/factory_create_method_test.rb" "test/unit/rest_phone_utilities/utilities_test.rb"
"test/unit/sound_collection_test.rb" "test/unit/sound_item/file_system_test.rb" "test/unit/sound_item/s3_test.rb"
"test/unit/sound_item_test.rb" "test/unit/user_call_log_test.rb" "test/unit/user_call_request_test.rb" 

Loaded suite C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader

Started

....................................................................................................................................................................F.........................................................................................

Finished in 14.932 seconds.



  1) Failure:

test_execute_requests_with_empty_queue(RestPhone::PhoneCallTest) [./test/unit/rest_phone/phone_call_test.rb:21]:

<false> is not true.



254 tests, 440 assertions, 1 failures, 0 errors

chmod 100644 

chmod 100644 

C:/InstantRails/ruby/bin/ruby -Ilib;test
"C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb"
"test/functional/account_controller_test.rb" "test/functional/activity_alert_controller_test.rb"
"test/functional/content_controller_test.rb" "test/functional/customers_controller_test.rb"
"test/functional/customer_phone_menus_controller_test.rb" "test/functional/help_controller_test.rb"
"test/functional/money_transactions_controller_test.rb" "test/functional/paypal_controller_test.rb"
"test/functional/phone_call_session_controller_test.rb" "test/functional/phone_number_assignments_controller_test.rb"
"test/functional/user_call_logs_controller_test.rb" "test/functional/user_call_requests_controller_test.rb" 

Loaded suite C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader

Started

....................................................

Finished in 6.757 seconds.



52 tests, 106 assertions, 0 failures, 0 errors

C:/InstantRails/ruby/bin/ruby -Ilib;test
"C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/integration/daemons_test.rb"
"test/integration/external_tools_test.rb" "test/integration/site_interaction_stories_test.rb" 

Loaded suite C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader

Started

..................

Finished in 0.629 seconds.



18 tests, 7 assertions, 0 failures, 0 errors

Comment 7 Martin Krauskopf 2007-08-25 16:23:54 UTC
Yup, sorry. I tried just regex match. Resolver did not try to resolve relatively to project directory. Fixed.

railsprojects/src/org/netbeans/modules/ruby/railsprojects/RailsFileLocator.java;
new revision: 1.2; previous revision: 1.1
Comment 8 Martin Krauskopf 2007-08-25 17:30:39 UTC
I've added the same also to the Ruby Project file locator + unit tests.
We need to merge those two locators into one, currently there is a lot of code duplication. 

projects/test/unit/src/org/netbeans/modules/ruby/rubyproject/RubyFileLocatorTest.java;
initial revision: 1.1
projects/src/org/netbeans/modules/ruby/rubyproject/RubyFileLocator.java;
new revision: 1.2; previous revision: 1.1
Comment 9 jamespb 2007-08-26 22:58:10 UTC
Still fails for me - this file (./test/functional/phone_call_session_controller_test.rb) should be a clickable link:

test_goto_menu_persists_across_calls(PhoneCallSessionControllerTest)
[./test/functional/phone_call_session_controller_test.rb:77]:

Tried in 3465

Product Version: NetBeans Ruby IDE 070826 Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows Vista
version 6.0 running on x86; Cp1252; en_US (nbrubyide) Userdir: C:\Users\James\AppData\Roaming\.nbrubyide\dev

------------ cut here ------------------------

(in C:/InstantRails/rails_apps/rfs)

C:/InstantRails/ruby/bin/ruby -Ilib;test
"C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/unit/accountant_test.rb"
"test/unit/activity_alert_test.rb" "test/unit/activity_mailer_test.rb" "test/unit/asterisk_call_file_test.rb"
"test/unit/call_session_test.rb" "test/unit/cepstral_test.rb" "test/unit/customer_phone_menu_test.rb"
"test/unit/customer_test.rb" "test/unit/http_phone/asterisk_cmd_test.rb"
"test/unit/http_phone/asterisk_response_test.rb" "test/unit/http_phone/asterisk_test.rb" "test/unit/http_phone_test.rb"
"test/unit/named_arguments/class_settings_mixin_test.rb" "test/unit/named_arguments/hash_extended_tools_test.rb"
"test/unit/named_arguments/method_extensions_test.rb" "test/unit/named_arguments_test.rb"
"test/unit/phone_number_test.rb" "test/unit/piggy_bank_test.rb" "test/unit/piggy_bank_transaction_test.rb"
"test/unit/rest_phone/array_of_ranges_test.rb" "test/unit/rest_phone/call_info/inbound_test.rb"
"test/unit/rest_phone/call_info/outbound_test.rb" "test/unit/rest_phone/call_info_test.rb"
"test/unit/rest_phone/dummy_asterisk_server_test.rb" "test/unit/rest_phone/dummy_line_server_test.rb"
"test/unit/rest_phone/phone_action/phone_action_subtypes_test.rb" "test/unit/rest_phone/phone_action_test.rb"
"test/unit/rest_phone/phone_audio_script_test.rb" "test/unit/rest_phone/phone_call_test.rb"
"test/unit/rest_phone/phone_event_test.rb" "test/unit/rest_phone/phone_logger_test.rb"
"test/unit/rest_phone/phone_menu_builder_test.rb" "test/unit/rest_phone/phone_menu_condition_test.rb"
"test/unit/rest_phone/phone_menu_test.rb" "test/unit/rest_phone/phone_number/north_america_test.rb"
"test/unit/rest_phone/phone_number_support_test.rb" "test/unit/rest_phone/phone_number_test.rb"
"test/unit/rest_phone/phone_prompt_test.rb" "test/unit/rest_phone/phone_request_test.rb"
"test/unit/rest_phone/remote_session_manager_test.rb" "test/unit/rest_phone/schedule_test.rb"
"test/unit/rest_phone_utilities/array_of_ranges_test.rb" "test/unit/rest_phone_utilities/deep_xml_test.rb"
"test/unit/rest_phone_utilities/factory_create_method_test.rb" "test/unit/rest_phone_utilities/utilities_test.rb"
"test/unit/sound_collection_test.rb" "test/unit/sound_item/file_system_test.rb" "test/unit/sound_item/s3_test.rb"
"test/unit/sound_item_test.rb" "test/unit/user_call_log_test.rb" "test/unit/user_call_request_test.rb" 

Loaded suite C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader

Started

.................................................................................................................................................................................................................................................................

Finished in 10.946 seconds.



257 tests, 444 assertions, 0 failures, 0 errors

chmod 100644 

chmod 100644 

C:/InstantRails/ruby/bin/ruby -Ilib;test
"C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb"
"test/functional/account_controller_test.rb" "test/functional/activity_alert_controller_test.rb"
"test/functional/content_controller_test.rb" "test/functional/customers_controller_test.rb"
"test/functional/customer_phone_menus_controller_test.rb" "test/functional/help_controller_test.rb"
"test/functional/money_transactions_controller_test.rb" "test/functional/paypal_controller_test.rb"
"test/functional/phone_call_session_controller_test.rb" "test/functional/phone_number_assignments_controller_test.rb"
"test/functional/user_call_logs_controller_test.rb" "test/functional/user_call_requests_controller_test.rb" 

Loaded suite C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader

Started

............................F.......................

Finished in 4.143 seconds.



  1) Failure:

test_goto_menu_persists_across_calls(PhoneCallSessionControllerTest)
[./test/functional/phone_call_session_controller_test.rb:77]:

<"secondmenu"> expected but was

<"default_menu">.



52 tests, 103 assertions, 1 failures, 0 errors

C:/InstantRails/ruby/bin/ruby -Ilib;test
"C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/integration/daemons_test.rb"
"test/integration/external_tools_test.rb" "test/integration/site_interaction_stories_test.rb" 

Loaded suite C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader

Started

..................
Finished in 0.402 seconds.

18 tests, 7 assertions, 0 failures, 0 errors
Comment 10 Martin Krauskopf 2007-08-26 23:05:10 UTC
And does it work with './test/unit/rest_phone/phone_call_test.rb' from your previous comment?
Comment 11 jamespb 2007-08-26 23:10:01 UTC
No - I just added an assert false in approximately the same place, and got no clickable links in this output:

(in C:/InstantRails/rails_apps/rfs)

C:/InstantRails/ruby/bin/ruby -Ilib;test
"C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/unit/accountant_test.rb"
"test/unit/activity_alert_test.rb" "test/unit/activity_mailer_test.rb" "test/unit/asterisk_call_file_test.rb"
"test/unit/call_session_test.rb" "test/unit/cepstral_test.rb" "test/unit/customer_phone_menu_test.rb"
"test/unit/customer_test.rb" "test/unit/http_phone/asterisk_cmd_test.rb"
"test/unit/http_phone/asterisk_response_test.rb" "test/unit/http_phone/asterisk_test.rb" "test/unit/http_phone_test.rb"
"test/unit/named_arguments/class_settings_mixin_test.rb" "test/unit/named_arguments/hash_extended_tools_test.rb"
"test/unit/named_arguments/method_extensions_test.rb" "test/unit/named_arguments_test.rb"
"test/unit/phone_number_test.rb" "test/unit/piggy_bank_test.rb" "test/unit/piggy_bank_transaction_test.rb"
"test/unit/rest_phone/array_of_ranges_test.rb" "test/unit/rest_phone/call_info/inbound_test.rb"
"test/unit/rest_phone/call_info/outbound_test.rb" "test/unit/rest_phone/call_info_test.rb"
"test/unit/rest_phone/dummy_asterisk_server_test.rb" "test/unit/rest_phone/dummy_line_server_test.rb"
"test/unit/rest_phone/phone_action/phone_action_subtypes_test.rb" "test/unit/rest_phone/phone_action_test.rb"
"test/unit/rest_phone/phone_audio_script_test.rb" "test/unit/rest_phone/phone_call_test.rb"
"test/unit/rest_phone/phone_event_test.rb" "test/unit/rest_phone/phone_logger_test.rb"
"test/unit/rest_phone/phone_menu_builder_test.rb" "test/unit/rest_phone/phone_menu_condition_test.rb"
"test/unit/rest_phone/phone_menu_test.rb" "test/unit/rest_phone/phone_number/north_america_test.rb"
"test/unit/rest_phone/phone_number_support_test.rb" "test/unit/rest_phone/phone_number_test.rb"
"test/unit/rest_phone/phone_prompt_test.rb" "test/unit/rest_phone/phone_request_test.rb"
"test/unit/rest_phone/remote_session_manager_test.rb" "test/unit/rest_phone/schedule_test.rb"
"test/unit/rest_phone_utilities/array_of_ranges_test.rb" "test/unit/rest_phone_utilities/deep_xml_test.rb"
"test/unit/rest_phone_utilities/factory_create_method_test.rb" "test/unit/rest_phone_utilities/utilities_test.rb"
"test/unit/sound_collection_test.rb" "test/unit/sound_item/file_system_test.rb" "test/unit/sound_item/s3_test.rb"
"test/unit/sound_item_test.rb" "test/unit/user_call_log_test.rb" "test/unit/user_call_request_test.rb" 

Loaded suite C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader

Started

.....................................................................................................................................................................F...........................................................................................

Finished in 11.711 seconds.



  1) Failure:

test_execute_requests_with_empty_queue(RestPhone::PhoneCallTest) [./test/unit/rest_phone/phone_call_test.rb:21]:

<false> is not true.



257 tests, 445 assertions, 1 failures, 0 errors

chmod 100644 

chmod 100644 

C:/InstantRails/ruby/bin/ruby -Ilib;test
"C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb"
"test/functional/account_controller_test.rb" "test/functional/activity_alert_controller_test.rb"
"test/functional/content_controller_test.rb" "test/functional/customers_controller_test.rb"
"test/functional/customer_phone_menus_controller_test.rb" "test/functional/help_controller_test.rb"
"test/functional/money_transactions_controller_test.rb" "test/functional/paypal_controller_test.rb"
"test/functional/phone_call_session_controller_test.rb" "test/functional/phone_number_assignments_controller_test.rb"
"test/functional/user_call_logs_controller_test.rb" "test/functional/user_call_requests_controller_test.rb" 

Loaded suite C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader

Started

............................F.......................

Finished in 3.095 seconds.



  1) Failure:

test_goto_menu_persists_across_calls(PhoneCallSessionControllerTest)
[./test/functional/phone_call_session_controller_test.rb:77]:

<"secondmenu"> expected but was

<"default_menu">.



52 tests, 103 assertions, 1 failures, 0 errors

C:/InstantRails/ruby/bin/ruby -Ilib;test
"C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/integration/daemons_test.rb"
"test/integration/external_tools_test.rb" "test/integration/site_interaction_stories_test.rb" 

Loaded suite C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader

Started

..................
Finished in 0.305 seconds.

18 tests, 7 assertions, 0 failures, 0 errors
Comment 12 jamespb 2007-08-26 23:13:17 UTC
(This may be a different bug, but it seems closely related)

Some behavior changed though - I used to get clickable links when I ran an individual test (via ctrl-F6), and now that
fails too.

This output has no clickable link:

------ cut -------------
Loaded suite C:/InstantRails/rails_apps/rfs/test/unit/rest_phone/phone_call_test

Started

....................F.....

Finished in 1.65 seconds.



  1) Failure:

test_execute_requests_with_empty_queue(RestPhone::PhoneCallTest)
[C:/InstantRails/rails_apps/rfs/test/unit/rest_phone/phone_call_test.rb:21]:

<false> is not true.



26 tests, 43 assertions, 1 failures, 0 errors

Comment 13 Martin Krauskopf 2007-08-26 23:25:19 UTC
And files like './test/functional/phone_call_session_controller_test.rb' or './test/unit/rest_phone/phone_call_test.rb'
are relative to your Rails application directory root, right?

application root:
  C:/InstantRails/rails_apps/rfs/
files: 
  C:/InstantRails/rails_apps/rfs/test/unit/rest_phone/phone_call_test.rb
  C:/InstantRails/rails_apps/rfs/test/functional/phone_call_session_controller_test.rb'

It will be Windows specific I think, since I have written test for Linux and also works for me. Windows uses little bit
different recognizers. I'll check it tomorrow on windows machine.

Also we might add king of fallbacks which tries to find through all project files for <the_file> if everything fails.
Comment 14 jamespb 2007-08-26 23:37:40 UTC
Yes, they're relative to RAILS_ROOT.
Comment 15 Martin Krauskopf 2007-08-28 08:16:04 UTC
I've set up windows and everything works for me. However I see there problems and bugs in the FileLocator code. Also
getting rid of duplication in Ruby vs. Rails projects. Enhancing tests to cover all cases and to be run also under windows.

Working on...
projects/test/unit/src/org/netbeans/modules/ruby/rubyproject/RubyProjectTestBase.java;
new revision: 1.5; previous revision: 1.4
projects/test/unit/src/org/netbeans/modules/ruby/rubyproject/RubyFileLocatorTest.java;
new revision: 1.2; previous revision: 1.1
projects/src/org/netbeans/modules/ruby/rubyproject/RubyFileLocator.java;
new revision: 1.3; previous revision: 1.2
Comment 16 Martin Krauskopf 2007-08-28 10:41:48 UTC
Still leaving open. But with this change it could work for you. More TODO. I've polished code and add more regression
test for Rails. But refactoring could cause regressions if there were no appropriate tests before. I've change testing
infrastructure so it is easy to test whatever now.

working on FileLocators:
- removing RubyFileLocator in Rails project
- removing duplicated code in RailsFileLocator
- RailsFileLocator based on RubyFileLocator
- more tests

projects/src/org/netbeans/modules/ruby/rubyproject/RubyFileLocator.java;
new revision: 1.4; previous revision: 1.3
railsprojects/src/org/netbeans/modules/ruby/railsprojects/RailsActionProvider.java;
new revision: 1.12; previous revision: 1.11
railsprojects/src/org/netbeans/modules/ruby/railsprojects/RailsFileLocator.java;
new revision: 1.3; previous revision: 1.2
railsprojects/test/unit/src/org/netbeans/modules/ruby/railsprojects/RailsFileLocatorTest.java;
initial revision: 1.1
railsprojects/test/unit/src/org/netbeans/modules/ruby/railsprojects/RailsProjectTestBase.java;
initial revision: 1.1
projects/test/unit/src/org/netbeans/modules/ruby/rubyproject/execution/RegexpOutputRecognizerTest.java;
new revision: 1.12; previous revision: 1.11
Comment 17 Martin Krauskopf 2007-08-28 14:24:52 UTC
Last piece?

projects/src/org/netbeans/modules/ruby/rubyproject/api/RubyExecution.java;
new revision: 1.11; previous revision: 1.10
projects/test/unit/src/org/netbeans/modules/ruby/rubyproject/execution/RegexpOutputRecognizerTest.java;
new revision: 1.13; previous revision: 1.12

I would say fixed, but I did not try to test on Windows (will have access later today or tomorrow). Let me know how does
it work for you. Thanks.
Comment 18 jamespb 2007-08-29 02:08:32 UTC
No good on windows in rev 3518.  It doesn't seem to find links that start with ., so in this:

    C:/InstantRails/rails_apps/rfs/app/models/rest_phone/phone_action/phone_action_subtypes.rb:176:in `create_a_response'

    C:/InstantRails/rails_apps/rfs/app/models/rest_phone/phone_action.rb:125:in `event_response'

    ./test/unit/rest_phone/phone_action/phone_action_subtypes_test.rb:20:in `assert_event_response'

    ./test/unit/rest_phone/phone_action/phone_action_subtypes_test.rb:182:in `test_event_response'


The first two are links, the third and forth are plain text.

Same here:

  3) Failure:

test_navigate_first(SoundCollectionTest) [./test/unit/sound_collection_test.rb:16]:

No links here.
Comment 19 Martin Krauskopf 2007-08-29 10:18:52 UTC
I see. It is the \r at the end. I've find it in one old test. I've added more test and more tuned regexps. Actually this
issue helped to enhance recognizers a lot - there are more links recognized and also infrastructure is cleaned a lot.
Now we only have to make it work on your machine ;). Hopefully this fix helps:

projects/src/org/netbeans/modules/ruby/rubyproject/api/RubyExecution.java;
new revision: 1.13; previous revision: 1.12
projects/test/unit/src/org/netbeans/modules/ruby/rubyproject/execution/RegexpOutputRecognizerTest.java;
new revision: 1.15; previous revision: 1.14

If not reopen again. I've tested on Win XP and Linux + running a lot of test on both platform, 100% passing.
If you find other ones please file a new issue. Definitely thanks for this bug ;)
Comment 20 jamespb 2007-08-29 20:00:26 UTC
You're welcome - thanks for getting it fixed.  So far haven't seen any problems in build 3530.