Open tetiana12345678 opened 6 years ago
This will be really interesting.
I had to do some tweaks to the generated Regex in some steps to have some sort of optional or alternative text and it will be really cool to have them auto-generated by Cabbage in my future projects.
This was started here:
Hello @mgwidmann ! I am wondering if there are plans to add cucumber expressions functionality, so we have something similar as described by Aslak here https://cucumber.io/blog/2017/07/26/announcing-cucumber-expressions
We are currently looking into it and I am wondering if you would accept a PR once we finished?
At the moment we are looking at features cucumber expressions provide, as described here https://docs.cucumber.io/cucumber/cucumber-expressions/ We are thinking at breaking that feature set into 3 features and deliver each in separate PR:
To achieve that we are thinking of adding extra call to private
find_implementation_of_step
function, which would callCucumberExpressions
module passing regex or string from step definition. Here is where we would call our module from https://github.com/cabbage-ex/cabbage/blob/master/lib/cabbage/feature.ex#L240How do you feel about that?