alexkrechik / VSCucumberAutoComplete

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

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

Closed daantimmer closed 1 year ago

daantimmer commented 1 year 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 1 year ago

Closing issue as not required anymore