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 176623 - [68cat][testing][unit] Errors from test unit execution are swallowed.
Summary: [68cat][testing][unit] Errors from test unit execution are swallowed.
Status: RESOLVED INCOMPLETE
Alias: None
Product: ruby
Classification: Unclassified
Component: Testing (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-12 00:23 UTC by esmithbss
Modified: 2010-04-20 08:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of IDE with test window displayed. (107.74 KB, image/png)
2009-11-12 00:23 UTC, esmithbss
Details
IDE Log File (1.11 MB, text/x-log)
2009-11-12 00:25 UTC, esmithbss
Details
IDE Log File with timeout of 10000 (113.58 KB, text/x-log)
2009-11-24 20:22 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2009-11-12 00:23:07 UTC
Created attachment 90869 [details]
Screenshot of IDE with test window displayed.

[200911091156]
[JDK1.6.0u17]
[Built in JRuby 1.3.1]
[Rails 2.3.4]

When running "rake test" with the RAILS_ENV forced to "test", errors running the unit tests are swallowed.  All that is displayed is "Errors running tests:units!"

Here is the output content from the test (right pane of test window)

Test-unit version : 2.0.5 loaded
Fast Debugger (ruby-debug-ide 0.4.6) listens on localhost:38544
(in /home/esmith/NetBeansProjects/TestApp)
/home/esmith/Apps/netbeans-dev-200911091156/ruby2/jruby-1.3.1/bin/jruby -I"lib:test" -r"/home/esmith/Apps/netbeans-dev-200911091156/ruby2/nb_test_runner.rb" "/home/esmith/Apps/netbeans-dev-200911091156/ruby2/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/a_recs_controller_test.rb" "test/functional/b_recs_controller_test.rb" "test/functional/c_recs_controller_test.rb" "test/functional/d_recs_controller_test.rb" 
/home/esmith/Apps/netbeans-dev-200911091156/ruby2/jruby-1.3.1/bin/jruby -I"lib:test" -r"/home/esmith/Apps/netbeans-dev-200911091156/ruby2/nb_test_runner.rb" "/home/esmith/Apps/netbeans-dev-200911091156/ruby2/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"  
Errors running test:units!

Finished in 1.801 seconds.
28 tests, 0 failures, 0 errors


See the screenshot for the complete window view.  Notice that 28 tests were run with 0 failures and 0 errors; however, the system says "Errors running test:units!"

No tests from the "test/unit" folder are loaded or executed.
Comment 1 esmithbss 2009-11-12 00:25:06 UTC
Created attachment 90870 [details]
IDE Log File
Comment 2 Erno Mononen 2009-11-12 08:18:09 UTC
I guess the debugger might swallow part of the output here, at least according to the log the test runner didn't get any other output from the test run. What is the output if you run the same command w/o the debugger? And what is it when run from the command line w/o the NB test runner, i.e. (in the project dir):

/home/esmith/Apps/netbeans-dev-200911091156/ruby2/jruby-1.3.1/bin/jruby
-I"lib:test"
-r"/home/esmith/Apps/netbeans-dev-200911091156/ruby2/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
"test/functional/a_recs_controller_test.rb"
"test/functional/b_recs_controller_test.rb"
"test/functional/c_recs_controller_test.rb"
"test/functional/d_recs_controller_test.rb" 
/home/esmith/Apps/netbeans-dev-200911091156/ruby2/jruby-1.3.1/bin/jruby
-I"lib:test"
Comment 3 esmithbss 2009-11-23 02:06:35 UTC
This is now prohibiting me from using NetBeans to develop and debug my application.
Comment 4 esmithbss 2009-11-23 02:08:54 UTC
Ignore last comment.  Issuezilla moved me to my next error.
Comment 5 esmithbss 2009-11-24 20:22:10 UTC
Created attachment 91637 [details]
IDE Log File with timeout of 10000
Comment 6 esmithbss 2009-11-24 20:23:53 UTC
Again, please ignore the attachment.  IZ moved me to the next bug prior to attaching.
Comment 7 Erno Mononen 2010-04-20 08:50:03 UTC
Marking as incomplete for now, please see my previous comment and reopen if this is still reproducible. Thanks.