You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2021. It is now read-only.
Currently a cucumber expression is sent in the generate snippets command, rather than leaving it to the language-specific program to generate the expression.
This will delay integration with cucumbers that don't currently support expressions, and ties us into using expressions. In Behat for instance we currently support regex and turnip expressions, and the user can select which one they want to use for the snippets. When we add cucumber expression support it's likely we'll still let users select the old syntax(es).
For this reason it'd be useful to have the full original step text in the command.
In the context of the general model, the language-specific program is going to need a cucumber expression parser (unless I've misunderstood) to do the step definition matching, therefore there's a possible source of errors where the runner generates an expression that the program can't then parse.
IMO it would be much cleaner to have all responsibility for expressions in the program and not build that knowledge into the runner.
Currently a cucumber expression is sent in the generate snippets command, rather than leaving it to the language-specific program to generate the expression.
This will delay integration with cucumbers that don't currently support expressions, and ties us into using expressions. In Behat for instance we currently support regex and turnip expressions, and the user can select which one they want to use for the snippets. When we add cucumber expression support it's likely we'll still let users select the old syntax(es).
For this reason it'd be useful to have the full original step text in the command.
In the context of the general model, the language-specific program is going to need a cucumber expression parser (unless I've misunderstood) to do the step definition matching, therefore there's a possible source of errors where the runner generates an expression that the program can't then parse.
IMO it would be much cleaner to have all responsibility for expressions in the program and not build that knowledge into the runner.