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

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

Open
pmohite31 opened this issue Sep 3, 2021 · 1 comment

Comments

@pmohite31
Copy link

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?

@Hsilgos
Copy link

Hsilgos commented Jan 13, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants