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 228502 - Geb DSL and Spock DSL spec methods show up as their DSL linked names instead of defined method names
Summary: Geb DSL and Spock DSL spec methods show up as their DSL linked names instead ...
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-11 23:35 UTC by _ wadechandler
Modified: 2013-04-11 23:35 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 _ wadechandler 2013-04-11 23:35:48 UTC
For starters see http://www.gebish.org. You will find a popular Groovy like web testing framework. Too, they have some extra wrappers around Spock which is a popular Groovy like test specification language. If one extends the class GebReportingSpec, then they define specifications like this:

class MyPageSpec extends ScrippsReportingSpec {
    
    def "ensure header value"() {
        given:
        //do something
        
        when:
        //do something
        
        then:
        //do some assertion checks
    }
    
    def "ensure tab values"() {
        given:
        //do something
        
        when:
        //do something
        
        then:
        //do some assertion checks
    }
}

In the navigator in NetBeans they will show up as something like "$spock_feature_3_1" and "$spock_feature_3_2". In Eclipse navigator they show up like "ensure tab values", and the Eclipse editor, as far as I know, doesn't know anything specific about this geb/spock combo, but understands the general pattern and does something more useful. It seems NetBeans should do this too for such Groovy things.