behave
behave copied to clipboard
step-registration: Reorder step definitions according to common prefix
Currently, a new step is appended to the step registry (step category) when it is registered. This may lead to ambiguous steps during step registration, if the longest step text/pattern is not defined first.
DESIRED CHANGE:
Find best insertion position for a step during step registration
- to avoid unnecessary ambiguous step errors
- instead of appending the new step
NOTES:
- Makes step registration more costly
- Currently, the user is in control by ordering the steps
- Insertion algorithm must be "failsafe"
RELATED TO: #924 (and others)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.