cucumber / messages

A message protocol for representing results and other information from Cucumber
MIT License
21 stars 19 forks source link

Add extra StepDefinitionPatternType for other than original gherkin realizations #160

Open elchupanebrej opened 1 year ago

elchupanebrej commented 1 year ago

🤔 What's the problem you're trying to solve?

As a developer of https://github.com/elchupanebrej/pytest-bdd-ng I try to implement messages protocol. pytest-bdd-ng have extra step definition patterns supported, so it can't fire correct messages

✨ What's your proposed solution?

Add extra type to define non-original step definition patterns; Make it non-required

https://github.com/cucumber/messages/blob/5b02bdc9b94d548f96b22950f1dfe8bc8f06db6e/jsonschema/StepDefinition.json#L18

mpkorstanje commented 1 year ago

With somewhat recent events in mind I don't think we'll get a working consensus on this anytime soon.

In the short term would not emitting the StepDefinition message when the pattern is neither regex nor cucumber expression work for you?