Feature Request: Undefined step, leading to suggested alternative(s) from current glue #90
Labels
⌛ stale
Will soon be closed by stalebot unless there is activity
⚡ enhancement
Request for new functionality
Summary
Wouldn't it be nice if Cucumber could suggest step definitions from the current project's glue that are similar to the undefined step that is currently being matched.
Possible Solution
There are fuzzy regex matching libraries available e.g. http://laurikari.net/tre/
Context & Motivation
When a step fails to match an undefined error is thrown and a snippet emitted. Often the failure is due to simple mistyping by the user. It would be nice if Cucumber could suggest step definitions that almost matched.
This could make it much simpler to pick up many categories of error, such as missing spaces and/or misspelt words
The text was updated successfully, but these errors were encountered: