Cucumberish icon indicating copy to clipboard operation
Cucumberish copied to clipboard

How to navigate to step definition from feature file by clicking on step from feature file?

Open pmohite31 opened this issue 3 years ago • 1 comments

I am using this library and its very useful only thing i have observed is one cannot navigate to step definition from feature file by clicking on step. Due to this it's very difficult to search the corresponding step in step definition file. If testcase is failing it shows in feature file which step is failing but you cannot navigate to step definition of the same by clicking on step.

Any idea how can i achieve this?

pmohite31 avatar Sep 03 '21 06:09 pmohite31

I achieved it in Visual Studio Code using plugin "Cucumber (Gherkin) Full Support" and following config:

{
    "cucumberautocomplete.steps": [
        "path/to/swift/sources/**/*swift"
    ],
    "cucumberautocomplete.syncfeatures": "path/to/feature/files/*.feature",
    "cucumberautocomplete.customParameters": [
        {
            "parameter":"\\\\",
            "value":"\\"
        }
    ],
}

Config must be in .vscode/settings.json If switch swift to java then will work with Java instead.

Hsilgos avatar Jan 13 '23 21:01 Hsilgos