alexkrechik / VSCucumberAutoComplete

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

Unable to create a proper `gherkinDefinitionPart` regex for our custom step definitions #472

Closed daantimmer closed 7 months ago

daantimmer commented 8 months ago

We are creating a gherkin runner written in C++. With custom fixtures (per step) support, with a google test inspired style.

It looks like:

PREFIX_STEP("Given a step without a fixture"){ /* ... body ... */ }
PREFIX_STEP_F(CustomFixture, "Given a CustomFixture"){ /* ... body ... */ }
PREFIX_STEP_F(CustomFixture, R"(Then we can also use literal strings )"){ /* ... body ... */ }

The step definition string is used directly as a regular expression to match against steps from a feature file. This works great. However, I am unable to create a cucumberautocomplete.gherkinDefinitionPart setting that is able to parse this line.

Any help is appreciated :-)

daantimmer commented 7 months ago

Closing issue as not required anymore