alexkrechik / VSCucumberAutoComplete

Cucumber (Gherkin) Full Support Extension for VSCode
https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete
MIT License
331 stars 82 forks source link

Feature description triggers step warnings #234

Closed chrisahardie closed 5 years ago

chrisahardie commented 5 years ago

Describe the bug When describing the feature as a user story, I will sometimes trigger warnings that a relevant step could not be found, even though such validation shouldn't occur given feature descriptions are not steps.

To Reproduce Add this to a .feature file

  Feature: Manage vendor services
    In order to offer my services in the app
    As a vendor
    I want manage the services I offer

This will trigger a couple warnings:

Was unable to find step for "In order to offer my services in the app"

Was unable to find step for "I want manage the services I offer"

Expected behavior Feature descriptions should not trigger warnings.

Cucumberautocomplete part of VSCode settings:

{
  "cucumberautocomplete.steps": [
      "src/integration-tests/steps/*.js",
  ],
  "cucumberautocomplete.strictGherkinCompletion": true
}

Step definition:

Note I am using the cucumber-boilerplate steps: https://github.com/webdriverio/cucumber-boilerplate/tree/master/src/steps

markcorgan commented 5 years ago

+1

alexkrechik commented 5 years ago

Hotfixed in 2.13.1

yon-cuadrado-blanco commented 5 years ago

Hello

I still have this error. I have included a repository where you can see the issue in the features included in the folder ,/cucumber/features