Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Undefined step, leading to suggested alternative(s) from current glue #90

Closed
sebrose opened this issue Oct 24, 2016 · 5 comments
Labels
⌛ stale Will soon be closed by stalebot unless there is activity ⚡ enhancement Request for new functionality

Comments

@sebrose
Copy link
Member

sebrose commented Oct 24, 2016

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

@sebrose sebrose added ⚡ enhancement Request for new functionality cucumber-expressions labels Oct 24, 2016
@mattwynne
Copy link
Member

That's a lovely idea!

@gmk1217
Copy link
Contributor

gmk1217 commented Oct 24, 2016

Excellent...!

@stale
Copy link

stale bot commented Nov 8, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs.

@stale stale bot added the ⌛ stale Will soon be closed by stalebot unless there is activity label Nov 8, 2017
@stale
Copy link

stale bot commented Nov 15, 2017

This issue has been automatically closed because of inactivity. You can support the Cucumber core team on opencollective.

@stale stale bot closed this as completed Nov 15, 2017
@lock
Copy link

lock bot commented Nov 15, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
⌛ stale Will soon be closed by stalebot unless there is activity ⚡ enhancement Request for new functionality
Projects
None yet
Development

No branches or pull requests

4 participants
@mattwynne @sebrose @gmk1217 and others