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 177594 - Show test related methods only in test classes
Summary: Show test related methods only in test classes
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-25 08:15 UTC by Erno Mononen
Modified: 2011-01-28 20:13 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2009-11-25 08:15:31 UTC
Currently e.g. all the assert_* methods are shown in code completion for "normal" classes even when test/unit (or any other test framework) is not loaded. In general, the IDE should try to figure out what gems are actually loaded. But until that is implemented, the IDE should at least detect what methods should be displayed in test classes only.
Comment 1 Quality Engineering 2009-12-17 00:12:10 UTC
Integrated into 'main-golden', will be available in build *200912170200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5a68fe2766de
User: Erno Mononen <emononen@netbeans.org>
Log: First part (Rails projects only) for #177594 and #175531
- 177594: Show test related methods only in test classes
- 175531: Only index the gems that are required
- introduced separate boot and source classpath for tests
- added the possibility to index only the gems listed by the rake gems task.
this is for sources only; in tests the boot classpath still contains all the gems
Comment 2 Erno Mononen 2010-01-26 06:37:11 UTC
Progress on this: in Rails apps there is now a possibility to explicitly specify the indexed gems separately for sources and tests, and by default test gems are excluded from the gems for sources.
Comment 3 Quality Engineering 2010-01-27 13:08:40 UTC
Integrated into 'main-golden', will be available in build *201001271614* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0f28c65da8c2
User: Erno Mononen <emononen@netbeans.org>
Log: #177594 - Show test related methods only in test classes
- introduced a utility class Gems for gem related utilities
- fixed a bug when adding gems when no gems were yet defined