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 194063 - inaccurate test results
Summary: inaccurate test results
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Testing (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-05 17:00 UTC by cherbst
Modified: 2011-01-28 20:14 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 cherbst 2011-01-05 17:00:17 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201011082200)
Operating System = Linux version 2.6.29.6 running on amd64
Java; VM; Vendor = 1.6.0_17
Runtime = Java HotSpot(TM) 64-Bit Server VM 14.3-b01

Trying to use code coverage tool to write functional tests for a rails controller.  I open controller, see method highlighted in red (means untested), then proceed to write test.  Open test file, write code, go back to controller, hit CTRL-F6 to run.  New test happens to use method defined in a library I forgot to load.  Output says all tests pass (8) but code remains red.  Restart netbeans same problem.  Run All Tests and then I finally get error about undeclared method.  Add include statement and all is fine.  If I comment out include I can reproduce the problem.

Looks like when ruby test throws NoMethodError netbeans gets confused and reports it as a pass.