Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NETBEANS-3730] Add simple code completion for Spock test framework #3736

Merged
merged 4 commits into from
Mar 23, 2022

Conversation

ppisl
Copy link
Member

@ppisl ppisl commented Mar 9, 2022

This is implemented issue #3730.

Added basic code completion for Spock test framework:

  • Spock block names are offered inside methods if the class extends the Spock specification.
  • Parameter names are offered if the parameters are defined in a method name that is annotated with @unroll

@mbien
Copy link
Member

mbien commented Mar 9, 2022

hi @ppisl, you can link to issues on the right side under "Development", this will close them automatically post integration ->

@ppisl ppisl linked an issue Mar 9, 2022 that may be closed by this pull request
2 tasks
@ppisl ppisl added Groovy kind:feature A feature request labels Mar 17, 2022
@ppisl ppisl self-assigned this Mar 17, 2022

for (int i = 1; i < parts.length; i++) {
String part = parts[i].trim();
if (!part.isEmpty()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the name is already matched by a regex in split() ... wouldn't it be faster to iterate using Pattern.compile("#\\p{Alpha}[\\p{Alnum}$_]*)[. ]?*).matcher(name) ?

@ppisl ppisl merged commit 79e7098 into apache:master Mar 23, 2022
@ppisl ppisl deleted the NETBEANS-3730 branch March 23, 2022 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groovy kind:feature A feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add simple code completion for Spock test framework
3 participants