r-cochran / cuke_sniffer

A ruby library used to root out smells in your cukes.
MIT License
44 stars 28 forks source link

Rule suggestion: Repeated step sequence #109

Open enkessler opened 7 years ago

enkessler commented 7 years ago

If the same steps are used repeatedly (e.g. logging in, navigating somewhere, and clicking some stuff), it may be a good opportunity to refactor them into a single, higher level step. Configuration possibilities include altering how many steps in a row it takes in order to trigger the rule or how many scenarios in which the same sequence has to appear in order to trigger the rule.