Skip to content

Double-clicking Spock def name in JUnit results view fails to recognize the method name #115

@davidmichaelkarr

Description

@davidmichaelkarr

When I run Java unit tests, I can double-click an entry from the "Junit" results view to go to the test method represented in the results view.

However, when the test is based on Spock, which I assume would be handled by this plugin, it appears the algorithm used to determine the method name is not "Groovy-able". It appears that it only takes the first word of the method name, and stops at the first space. Groovy method names can be quoted strings with spaces, which is what is typically done with Spock spec methods. The result is an error dialog which says "Method 'xxx' not found. Opening the test class.".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions